16.05.2012, 16:46
Use this one then now.
pawn Код:
public zombtimer(playerid)
{
new Float:healHP;
for(new i=0; i<MAX_PLAYERS_EX; i++)
{
GetPlayerHealth(i, healHP);
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 10.0, -1701.426757,684.093688,18.226135))
{
if(zombie[i] == 0)
{
GivePlayerHealth(i,healHP-5);
}
}
}
}
if(healHP < 20)
{
if(IsPlayerConnected(i))
{
if(zombie[i] == 0)
{
zombie[i] = 1;
}
}
}
return 1;
}