Jump to content
  • 0

Comanda


Venox

Question

5 answers to this question

Recommended Posts

  • 0

if(PlayerInfo[playerid][pAdmin] < 7) return SendError(playerid, "Nu deti level-ul corespunzator");

Mna,probabil ca acolo "pAdmin" este altfel definit,eu am dat doar un exemplu. Ia-te dupa el.

Edited by ScrowL
Link to comment
Share on other sites

  • 0

Deci , depinde daca ai definit SCM(SendClientMessage) 

Daca il ai definit :

if(PLayerInfo[playerid][pAdmin] < 7) return SCM(playerid, -1, "Nu ai acces la aceasta comanda");

Daca nu il ai definit :

if(PLayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, -1, "Nu ai acces la aceasta comanda");

Eu sper ca te-am ajutat cu ceva 😃 

 

 

Link to comment
Share on other sites

  • 0
La 01.11.2019 la 20:32, K H A I N a spus:

O metoda mai simpla si mai usoara 

 


#define        acmd(%0) if(info[playerid][pAdmin] < %0) return 1;

 

Si folosesti deja in comanda


CMD:setadmin(playerid) {
	acmd(7);
	....
    return 1;
}

 

super easy. o recomand pe asta

                     

  Serverul meu de Discord: Click aici       a7DfKP7.gif                                                                      FGIfknL.gif

k35T5Nb.png                                                                                                                                                                                                                                                                                                I0aS856.gif

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
Answer this question...

×   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.

×
×
  • 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.