09.08.2012, 18:06
Fix:
pawn Код:
CMD:heal(playerid, params[])
{
new playerb, string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(sscanf(params, "u", playerb)) return SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /heal [playerid]");
if(!IsAMedic(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to be a Medic to use this command.");
SetPlayerHealth(playerb, 100);
GiveZaiatMoney(playerb, -45);
format(string, sizeof(string), "You have healed %s for 45$.", RPN(playerb));
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}