for(new i = 0; i < MAX_PLAYERS; i++){if(IsPlayerConnected(i)){ if(GetPlayerHealth(i) < 100) { SetPlayerHealth(i, GetPlayerHealth(i) + 1); } if(GetPlayerArmour(i) < 100) { SetPlayerHealth(i, GetPlayerArmour(i) + 1); }} }
} }[/quote]ezek miatt, mert egymás mellett zárnak.vagy próbáld így: for(new i = 0; i < MAX_PLAYERS; i++){ if(IsPlayerConnected(i)) { if(GetPlayerHealth(i) < 100){ SetPlayerHealth(i, GetPlayerHealth(i) + 1);}else if(GetPlayerArmour(i) < 100){ SetPlayerHealth(i, GetPlayerArmour(i) + 1);} } } Elvileg így már mûködnie kell.. Persze ez a timer rossz helye is okozhatja, hogy nem jó.
for(new i = 0; i < MAX_PLAYERS; i++){ if(IsPlayerConnected(i)) { if(GetPlayerHealth(i) < 100){ SetPlayerHealth(i, GetPlayerHealth(i) + 1);}else if(GetPlayerArmour(i) < 100){ SetPlayerHealth(i, GetPlayerArmour(i) + 1);} } }
SetPlayerHealth(i, GetPlayerHealth(i) + 1);
SetPlayerHealth(i, 99999);
SetPlayerHealth(i, 100.0);
new Float:health;GetPlayerHealth(i,health);
SetPlayerHealth(i, health + 1);