03.02.2014, 15:32
When i do this ingame it dosent give anything not a message or health nothing i guess it got something to do with
right?
pawn Код:
else if(!strcmp(params, "choosehp", true))
pawn Код:
CMD:heal(playerid, params[])
{
if(sscanf(params, "us[128]", victim, params))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /heal [playerid/PartOfName] [choosehp]");
return 1;
}
if(!IsPlayerConnected(victim)) return SendClientMessage(playerid, -1, "643384 does not exist.");
else if(!strcmp(params, "choosehp", true))
{
if(sscanf(params, "us[128]i", victim, params, amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /heal [playerid/PartOfName] [choosehp] [amount]");
SetPlayerHealth(victim, amount);
format(string, sizeof(string), "%s has refilled your health to %d.", NameL(playerid), amount);
SendClientMessage(victim, COLOR_BB, string);
}
return 1;
}