Jump to content

[Tutorial] - Comanda /stopwar pentru orice gamemode.


yashinAdevaratu
 Share

Recommended Posts

Salut, astazi vreau sa va prezint un tutorial, cam cum puteti creea o comanda de tip /stopwar
sa 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 by YASHIN TRUE SILENT AIMBOT
  • Upvote 1
Link to comment
Share on other sites

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 by Un4m3d_Hokage
Link to comment
Share on other sites

 

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 :(

Link to comment
Share on other sites

 

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.