17.10.2014, 23:04
Well, first off, why isn't this working?
Secondly, how am I meant to make it where you type /givegun [playerid] [gunid] [ammo]?
Third thing lol, how do I make commands only acceptable by admins?
Fourth, but final thing, how do I make a /setskin command? (only usable for admin level 2 +).
Код:
CMD:sethp(playerid,params[]) { if(IsPlayerAdmin(playerid)) { new Health; new PID; if(sscanf(params, "ud", PID, Health)) return SendClientMessage(playerid, -1, "USAGE: /sethp [playerid] [health]"); if(!IsPlayerConnected(PID)) return SendClientMessage(playerid, -1, "Player is not connected"); SetPlayerHealth(PID, Health); } else SendClientMessage(playerid, -1, "You are not authorized to use this command!"); return 1; }
Third thing lol, how do I make commands only acceptable by admins?
Fourth, but final thing, how do I make a /setskin command? (only usable for admin level 2 +).