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