getplayerhealth
#2

pawn Код:
new Float:MostHealth=0.000000,MostHealthPlayer,Float:hp;
for(new i,ii = GetMaxPlayers(); i < ii; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerHealth(i,hp,sizeof(hp));
if(hp > MostHealth)
{
MostHealth = hp;
MostHealthPlayer = i;
}
}
}
new str[128],name[30];
GetPlayerName(MostHealthPlayer,name,sizeof(name));
format(str,sizeof(str),"%s has the most health (%f)",name,MostHealth);
SendClientMessageToAll(COLOR,str);
Reply


Messages In This Thread
getplayerhealth - by Marco_Valentine - 11.03.2012, 18:35
Re: getplayerhealth - by coole210 - 11.03.2012, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)