21.04.2010, 19:55
1 warning: (17039) : warning 217: loose indentation
how can i make that it teleports 1 time because when i have 20 hp it is going to teleport me 1000000000000000000000000 times
Код:
public OnPlayerUpdate(playerid) { new Float:HealthAmount; //done GetPlayerHealth(playerid, HealthAmount); if(HealthAmount <= 20) { SetPlayerPos(playerid, 0.0, 0.0, 0.0); } return 1; }