Help with rcon command
#10

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.
Reply


Messages In This Thread
Help with rcon command - by ricardo178 - 26.01.2011, 21:47
Re: Help with rcon command - by bartje01 - 26.01.2011, 21:50
Re: Help with rcon command - by ricardo178 - 26.01.2011, 21:56
Re: Help with rcon command - by bartje01 - 26.01.2011, 22:09
Re: Help with rcon command - by ricardo178 - 26.01.2011, 22:24
Re: Help with rcon command - by bartje01 - 26.01.2011, 22:31
Re: Help with rcon command - by ricardo178 - 26.01.2011, 22:34
Re: Help with rcon command - by A.Bowers - 27.01.2011, 00:19
Re: Help with rcon command - by Mean - 27.01.2011, 13:24
Re: Help with rcon command - by DVDK - 27.01.2011, 13:53

Forum Jump:


Users browsing this thread: 1 Guest(s)