21.07.2011, 22:01
For my HealthCheck,
I get the Playerid is underfined. Is there a way around this? the plan is, Checks if players health is 10 or below, and if so, it will change the skin.
Код:
forward HealthCheck(); public HealthCheck() { for(new i=0; i<MAX_PLAYERS; i++){ if(IsPlayerConnected(i)){ new Float:Health; GetPlayerHealth(i, Health); if(Health < 10){ SetPlayerSkin(playerid,137); } } } }