Jump to content

Question

Posted

Am incercat sa fac cumva ca atunci cand un admin nivel 1+ da comanda /slap /kick etc la un admin nivel 5+ sa nu ii poata da, insa nu prea stiu cum, am incercat eu ceva de genul asta "if (PlayerInfo[playerid][pAdmin] <=5) return SendClientMessage(playerid, COLOR_ADMCOMMANDS, "Nu poti folosi aceasta comanda pe un admin nivel 5+.");" Stiu ca o sa radeti de mine dar asta mi a trecut mie in cap.....

3 answers to this question

Recommended Posts

  • -1
Posted

Daca coceai putin mai mult ideea ajungeai unde trebuie

Citat

if (PlayerInfo[oherPlayerId][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_ADMCOMMANDS, "Nu poti folosi aceasta comanda pe un admin nivel 5+.")

 

  • -1
Posted

Cand am intrat sa bag un comment ca am mai incercat eu si am pus "        if(PlayerInfo[playerid][pAdmin] <= 6) return SCM(playerid,COLOR_WHITE,"{FFB870}Nu poti folosii comanda pe un admin nivel 5+.");" am vazut ca ai pus si tu, multumesc.

  • -1
Posted

vezi cum ai variabila de targetid sau id si foloseste asa 'if(PlayerInfo[id][pAdmin] <= 6) return SCM(playerid,-1,"blablabla");

O pui dupa if(sscanf sau if(isnull cum ai tu.

Sper ca te-am ajutat!

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.