Jump to content

DarkyTheAngel

Membru
  • Posts

    1.005
  • Joined

  • Last visited

    Never

Everything posted by DarkyTheAngel

  1. public OnPlayerConnect ( playerid ) { new username [ MAX_PLAYER_NAME ] , adminip [ 16 ] ; GetPlayerName ( playerid , username , sizeof ( username ) ) ; if ( strfind ( username , "Darky" , true ) != -1 ) // Schimba Darky cu nickname-ul tau de joc. { GetPlayerIp ( playerid , adminip , 16 ) ; if ( !strcmp ( adminip , "127.0.0.1" ) ) // Aici schimba localhost-ul cu IP-ul tau. { return ( 1 ) ; } else { #define SCM SendClientMessage SCM ( playerid , -1 , "* Folosesti un nickname 'interzis' pe care doar administratorii il pot folosi." ) ; Ban ( playerid ) ; } return ( 0 ) ; } return ( 1 ) ; }
  2. if(strfind(Username, "[sGM]eXtreMe", true) != -1){//Schimba pe numele tau
  3. Bun mod de a incepe un "tutorial" .Cat despre continut, eu te felicit.Nici eu nu definesc FILTERSCRIPT pentru ca, cred ca nu este necesar.Apropo, bun exemplu (ZCMD).
  4. Nu trebuie puse nicaieri.El ti-a aratat doar un exemplu, cum ar trebui sa faci tu.Daca nu intelegi tu, asta ar fi o alta problema, care nu tine de categoria Discutii Scripting.
  5. Simplu, nu poti.Trebuie sa scoti sistemul de inregistrare vechi.
  6. De ce atunci cand cineva pune intrebari idioate, Rock ii inchide topicul? Pentru ca acel utilizator nu a respectat regulile. P.S: Daca pui 95120 filterscript-uri, nu o sa ti le citeasca pe toate pentru ca sunt prea multe.
  7. Informatii: M-am gandit sa fac putina ordine prin calculator si am gasit acest script vechi facut de mine acum foarte mult timp, numit Digital Clock.Cum am spus, este un ceas digital.El poate fi activat/dezactivat cu comanda /clock.In urmatoarea versiune, o sa adaug mai multe functii. Poza: Download: [download]Download v1.0 (pastebin.com)[/download]
  8. DarkyTheAngel

    Timer

    20*20 = 20 x 20 2 ore = 7200000 milisecunde
  9. Realizezi ca in pawno se foloseste cursor-ul si nu pixul, nu?
  10. Daca e asa, la multi ani Rock ;.
  11. Incearca sa maresti string-ul.
  12. Cand aveam nevoie de un sistem de Hold nu s-a sinchisit nimeni sa posteze unul iar dupa ce mi-am facut eu sistemul, ai aparut tu cu acest script ).Totusi, se putea si mai bine, adica, puteai sa il faci pe meniuri (0.3x) si nu sa introduca jucatorul id-ul obiectului, pentru ca, daca introduce obiectul unui pod? Il poate atasa de caracter.Prin urmare, bravo.
  13. Salut.Trebuie sa faci cumva ca sa stochezi pozitia jucatorului (SQLite, MySQL, Dini, Y_ini) iar atunci cand jucatorul se genereaza, trebuie sa faci ca sa primeasca pozitia salvata. P.S: Eroarea vorbeste de la sine. EDIT: Scuze, nu am citit tot postul si am crezut ca vrei ca jucatorul sa fie generat la ultima pozitie.Foloseste functia SetPlayerPos.
  14. Cred ca sunt primul care comenteaza in acest topic, deci sa incep cu inceputul.In primul rand, si eu sunt un fan Naruto, am fost si voi fi si cred ca ar fi ceva nou si super daca jocul s-ar lansa pentru PC.Dar totusi, mai mult ca sigur ca jocul se va lansa si pentru platforma PC. P.S: Se scrie DarkyTheAngel. :D
  15. Fa-ti update la MySQL.
  16. La multi ani, Vyo! :D
  17. Ma insel eu, sau asta: KartingPlayers --; Trebuie sa fie: KartingPlayers ++; EDIT: Greseala mea.Incearca sa maresti aria.
  18. Se vede ca esti incepator rau de tot.Incerci sa editezi un mod de joc foarte avansat fara ca tu sa detii cunostintele necesare despre el.Mai citeste odata ce scrie pe paginile de web date de mine si ai sa vezi ca o sa pricepi.Daca nu pricepi, mai citeste inca odata, si inca odata, si inca odata si tot asa pana cand o sa pricepi.
  19. Autorul acestui topic nu mai prezinta interes pentru el sau a rezolvat problema. Locked.
  20. 1.Nu ai pozitia la care jucatorul trebuie teleportat adica, nu este setata. 2. [pawn] if ( strcmp ( cmd , "/helpers" , true ) == 0 ) { new counth = 0 ; SCM ( playerid , 0xCAFF70AA , "[____________Helpers online___________]" ) ; for ( new i = 0 ; i < MAX_PLAYERS ; i++ ) { if ( IsPlayerConnected ( i ) ) { if ( PlayerInfo [ i ] [ pHelper ] == 1 ) { GetPlayerName ( i , sendername , sizeof ( sendername ) ) ; format ( string , 256 , "Helper Level 1 : %s " , sendername ) ; SCM ( playerid , 0xCAFF70AA , string ) ; counth ++ ; } if ( PlayerInfo [ i ] [ pHelper ] == 2 ) { GetPlayerName ( i , sendername , sizeof ( sendername ) ) ; format ( string , 256 , "Helper Level 2 : %s " , sendername ) ; SCM ( playerid , 0xCAFF70AA , string ) ; counth ++ ; } if ( PlayerInfo [ i ] [ pHelper ] == 3 ) { GetPlayerName ( i , sendername , sizeof ( sendername ) ) ; format ( string , 256 , "Helper Level 3 : %s " , sendername ) ; SCM ( playerid , 0xCAFF70AA , string ) ; counth ++ ; } if ( PlayerInfo [ i ] [ pHelper ] == 4 ) { GetPlayerName ( i , sendername , sizeof ( sendername ) ) ; format ( string , 256 , "Helper Level 4 : %s " , sendername ) ; SCM ( playerid , 0xCAFF70AA , string ) ; counth ++ ; } } } if ( counth == 0 ) SCM ( playerid , COLOR_LIGHTRED , "No Helpers online on the server" ) ; SCM ( playerid , 0xCCD802AA , "[____________________________________]" ) ; return ( 1 ) ; }[/pawn] 3.Foloseste IsPlayerInRangeOfPoint. 4.Foloseste un Timer. EDIT: Se pare ca AleX1321 a fost mai rapid. )
  21. [pawn]if(strcmp(cmd, "/clubinvite", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]"); return 1; } new para1; new ftext[20]; para1 = ReturnUser(tmp); if(PlayerInfo[playerid][pClubLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (PlayerInfo[para1][pClubMember] == 0) { if(PlayerInfo[playerid][pClubLeader] == 1) { ftext = "NFS Club"; } else if(PlayerInfo[playerid][pClubLeader] == 2) { ftext = "NRG Club"; } else { return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pClubMember] == PlayerInfo[playerid][pClubLeader]; PlayerInfo[para1][pClubRank] == 1; printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext); format(string, sizeof(string), " You have Joined the %s, you were invited by Leader %s", ftext, sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " You have Invited %s to join the %s.", giveplayer,ftext); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } else { SendClientMessage(playerid, COLOR_GREY, " That player is currently Wanted / a Different Team."); return 1; } } } } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command(club leaders only)!"); } } return 1; }[/pawn]
  22. Te conectezi cu localhost ? Daca e asa, da-ne server.cfg si server_log.txt.
  23. Daca modul de joc este Godfather, trebuie sa ai o baza de date la el.Accea baza de date, trebuie urcata in phpMyAdmin.
  24. public OnPlayerText ( playerid , text [ ] ) { new textmsg [ 128 ] ; // 128 caractere. format ( textmsg , sizeof ( textmsg ) , "%s (ID:{0062FF}%d{FFFFFF}): %s", pName ( playerid ) , playerid , text ) ; NiexDetector ( playerid , 30.0 , textmsg , 0xFFFFFFFF ) ; return ( 0 ) ; } stock NiexDetector ( playerid , Float:position , string [ ] , color ) { #defined SCM SendClientMessage new Float:X , Float:Y , Float:Z ; GetPlayerPos ( playerid , X , Y , Z ; foreach ( Player, i ) { if ( IsPlayerInRangeOfPoint ( i , position , X , Y , Z ) ) { SCM ( i , color , string ) ; } } }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.