13.07.2011, 13:54
I'm trying to make an admin command.
When admin type /class [playerid] it will kill the selected player and force him to the class selection....
Can someone help me with the command?
When admin type /class [playerid] it will kill the selected player and force him to the class selection....
Can someone help me with the command?
Код:
command(class, playerid, params[]) { new ID; if(AdminLevel[playerid] == 1337) if(sscanf(params, "i", ID)) { SendClientMessage(playerid, Red, "Usage: /class (playerid)"); return 1; } ForceClassSelection(playerid); SetPlayerHealth(playerid,0); return 1; }