Quote:
Originally Posted by bartje01
I'll script this out of nothing now.
I'm feeling a bit under the weather so..
btw, you've used the isplayeradmin wrong
As you can see I have the ! symbol which means negative.
pawn Код:
COMMAND:heal(playerid,params[]) { new id; new string[60]; if(!IsPlayerAdmin(playerid)); return SendClientMessage(playerid, 0xFF4444FF, "You're not an admin"); if(sscanf(params,"u",id)) return SendClientMessage(playerid, 0xFF4444FF, "usage: /heal [playerid]"); else SetPlayerHealth(id,100); SendClientMessage(playerid,COLORCODE,"You've healed a player"); SendClientMessage(id,COLORCODE,"You're healed by an admin"); return 1; }
You'll need the sscanf2 plugin.
You'll need ZCMD
Put it anywhere in your script. NOT IN A CALLBACK.
|
You forgot some brackets ( {} ) and you don't need sscanf for 1 parameter.