23.06.2010, 09:19
Im trying to make like a little system to allow you to have 1 life per match so im asking 2 things How and Why.
Why dosent my code work??
How do i detect if all players in one team died so it can exec a restart?
and
How do i make it automaticlly restart if theres 1 person on my server and they die?
Thats all i think :P
-Lorenc
Why dosent my code work??
Код:
public OnPlayerSpawn(playerid) { if(PlayerDied[playerid] == true) { TogglePlayerSpectating(playerid, 1);// need to make some addons for this... } return 1; } public OnPlayerDeath(playerid, killerid, reason) { PlayerDied[playerid] = true; return 1; }
and
How do i make it automaticlly restart if theres 1 person on my server and they die?
Thats all i think :P
-Lorenc