new Float:hp, Float:a; new target = GetClosestPlayer(playerid); if(GetDistanceBetweenPlayers(playerid,target) <= 1) { if(hp < 5) { new string[100]; new target[MAX_PLAYERS]; format(string,sizeof(string), "%s turn into a zombie !.", target); SendClientMessageToAll(RED,string); } } |
new Float:hp, Float:a;
new target = GetClosestPlayer(playerid);
if(GetDistanceBetweenPlayers(playerid,target) <= 1)
{
if(hp < 5)
{
new string[100];
new hPl[MAX_PLAYER_NAME];
GetPlayerName(target, hPl, sizeof hPl);
format(string,sizeof(string), "%s turn into a zombie !.", hPl);
SendClientMessageToAll(RED,string);
}
}
new Float:hp, Float:a;
new target = GetClosestPlayer(playerid);
if(GetDistanceBetweenPlayers(playerid,target) <= 1)
{
if(hp < 5)
{
new string[100], targetname[28];
GetPlayerName(playerid, targetname, sizeof(targetname));
format(string,sizeof(string), "%s turn into a zombie !.", targetname);
SendClientMessageToAll(RED,string);
}
}