Jump to content

Question

Posted

Am si eu fs-ul carownership si daca incerc sa folosesc o comanda gen /acreatecar zice ca nu sunt autorizat si as vrea sa stiu cu ce as putea schimba functia

[pawn]if(IsPlayerAdmin(playerid))[/pawn]

cu una care sa i deie voie sa foloseasca comanda doar daca are admin lv 6 :)

8 answers to this question

Recommended Posts

Posted

if(IsPlayerAdmin(playerid))

E functia care verifica ca este Rcon

Inlocuieste de ex cu :

if( P_DATA[ playerid ][ pAdmin ] == 6 )

== - arata ca acea comanda / functie se poate folosi doar la level 6 , de ex

>= - arata ca acea comanda / functie se poate folosi doar la level 6 sau mai mare , de ex

> - arata ca acea comanda / functie se poate folosi doar mai mare de level 6 , de ex

< - arata ca acea comanda / functie se poate folosi doar mai mic de level 6 , de ex

idiots.png
Posted

ok incerc si revin cu edit :)

EDIT:

Am Incercat prin Metoda Lui Darky dar am urmatoarile erori

[pawn]error 017: undefined symbol "pAdmin"[/pawn]

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.