19.12.2010, 10:05
pawn Код:
if(Medic[playerid] == 1 || IsPlayerInVehicle(playerid, 416))
{
SetPlayerHealth(id,100);
new pName[24];
new string[265];
GetPlayerName(playerid,"pName",sizeof(pName));
format(string,sizeof(string),"MEDIC:You got healed by Medic %s",pName);
new Float:health, Float:h = 100 - health;
GetPlayerHealth(id,health);
SetPlayerHealth(id, health+h);
SendClientMessage(id,0x00FF00AA,string);
}