09.08.2013, 14:32
man u can use the luxadmin tutorial :
Add "<ladmin> in top of your script
Then, add line to your command:
that will be enouth for /godon
now /godoff
done!
Add "<ladmin> in top of your script
Then, add line to your command:
Quote:
if (IsPlayerLuxAdm(playerid)) |
Quote:
if(strcmp(cmd, "/godon", true) == 0) { if(IsPlayerLuxAdmin(playerid,1)) { //Function Here } else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You are not Adminstrator level 1"); SetPlayerHealth(playerid, 9999999999); return 1; } |
now /godoff
Quote:
if(strcmp(cmd, "/godoff", true) == 0) { if(IsPlayerLuxAdmin(playerid,1)) { //Function Here } else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You are not Adminstrator level 1"); SetPlayerHealth(playerid, 100); return 1; } |