18.10.2013, 01:42
Sloved!
CMD:heal(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "UnKnown Command! Type /help");
if(sscanf(pramas,"u", params[0])) return SendClientMessage(playerid, RED, "Healing a specific player: /heal <playerid>");
if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, RED, "Player is not connected!");
SetPlayerHealth(params[0], 100.0);
new name[MAX_PLAYER_NAME], pt_msg[100];
GetPlayerName(playerid, name, sizeof (name));
format(pt_msg,sizeof (pt_msg),"Administrator %s has healed you",name);
SendClientMessage(params[0], -1, pt_msg);
return 1;
}