Jump to content

Question

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
  • 0
Posted

Mama, este si greu, faci o verificara daca are admin mai mic de 7 sa-i returneze un mesaj

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

  • 0
Posted

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 😃 

 

 

  • 0
Posted

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;
}

 

  • 0
Posted
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.