yashinAdevaratu Posted April 9, 2018 Share Posted April 9, 2018 (edited) Salut, astazi vreau sa va prezint un tutorial, cam cum puteti creea o comanda de tip /stopwarsa dati disable la war-uri, etc. Sa incepem: Incepem cu variabila globala: Adaugam in gamemode: new stopwar; Mergem la ongamemodeinit si adaugam: stopwar = 0; Apoi mergem la comenzi si facem dupa urmatorul exemplu, CMD:stopwar(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 5) { if(stopwar == 0) { stopwar = 1; // disable war //Aici adaugati mesaj daca vreti SCM(playerid, -1, "Ai dezactivat war-urile."); } else { stopwar = 0; // active war //Aici adaugati mesaj daca vreti SCM(playerid, -1, "Ai activat war-urile."); } } else return SCM(playerid, -1, "Trebuie sa fii admin pentru a putea folosi comanda asta!"); return 1; } La comanda voastra de /attack adaugati urmatoarea verificare: if(stopwar == 1) return SCM(playerid, -1, "War is disable."); E ceva basic, ceea ce oricine cu cunostinte minime in pawn poate face, succes. Bonus: https://www.youtube.com/watch?v=zFZXpZNgbfQ Edited April 9, 2018 by YASHIN TRUE SILENT AIMBOT 1 Quote Link to comment Share on other sites More sharing options...
Zooky. Posted April 9, 2018 Share Posted April 9, 2018 Gg. Quote Link to comment Share on other sites More sharing options...
yashinAdevaratu Posted April 9, 2018 Author Share Posted April 9, 2018 Gg. ms Quote Link to comment Share on other sites More sharing options...
SEKER. Posted April 9, 2018 Share Posted April 9, 2018 Gg Quote Link to comment Share on other sites More sharing options...
Ramzes Posted April 9, 2018 Share Posted April 9, 2018 Felicitari pentru munca depusa! Quote Link to comment Share on other sites More sharing options...
yashinAdevaratu Posted April 9, 2018 Author Share Posted April 9, 2018 Mersi all! Quote Link to comment Share on other sites More sharing options...
RedGun Posted April 9, 2018 Share Posted April 9, 2018 (edited) gg man. cel mai bun scripter <3 Edited April 9, 2018 by RedGun Quote Link to comment Share on other sites More sharing options...
Un4m3d_Hokage Posted April 9, 2018 Share Posted April 9, 2018 (edited) Cel mai scripter smr. Asta doar te opreste sa folosesti comanda /attack, daca altcineva da /attack tot te pune in war, cel putin la prima verificare din /stopwar oricum nu se compileaza ca-ti da eroare Gg. n-ai we de editat un include sau ceva? Edited April 9, 2018 by Un4m3d_Hokage Quote Link to comment Share on other sites More sharing options...
Zooky. Posted April 9, 2018 Share Posted April 9, 2018 Cel mai scripter smr. Asta doar te opreste sa folosesti comanda /attack, daca altcineva da /attack tot te pune in war, cel putin la prima verificare din /stopwar oricum nu se compileaza ca-ti da eroare n-ai we de editat un include sau ceva? Nuj cum :( Quote Link to comment Share on other sites More sharing options...
yashinAdevaratu Posted April 9, 2018 Author Share Posted April 9, 2018 Cel mai scripter smr. Asta doar te opreste sa folosesti comanda /attack, daca altcineva da /attack tot te pune in war, cel putin la prima verificare din /stopwar oricum nu se compileaza ca-ti da eroare n-ai we de editat un include sau ceva? Am aratat clar, doar un exemplu, nu l-am facut complet, parerea ta, si ti-o respect. Quote Link to comment Share on other sites More sharing options...
Un4m3d_Hokage Posted April 9, 2018 Share Posted April 9, 2018 Am aratat clar, doar un exemplu, nu l-am facut complet, parerea ta, si ti-o respect. mane, daca tot il arati, arata-l corect.. Quote Link to comment Share on other sites More sharing options...
yashinAdevaratu Posted April 9, 2018 Author Share Posted April 9, 2018 mane, daca tot il arati, arata-l corect.. Am vazut acum greseala, era folosita de playerid, scz, am dat edit. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.