16.05.2012, 16:50
BIG THX
this is without errors and warnings:
this is without errors and warnings:
Код:
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); } } } } for(new i=0; i<MAX_PLAYERS_EX; i++) if(healHP < 20) { if(IsPlayerConnected(i)) { if(zombie[i] == 0) { zombie[i] = 1; } } } return 1; }