23.02.2018, 12:12
Hello
what trying to do is when the race is finnished everyone that be in the race will respawn back (out of race)
so I set a timer for the last checkpoint in the race for 30 seconds
when any player reaches that checkpoint it will start the count
and after 30 seconds it will need to respawn all players (only the players that be in the race)
how will it be possible ?
becouse I don't want it to be respawning players that are not in race
and worst I don't want it to respawn only the player that finnished the race
I want it to respawn everyone in race
here is what I did
appreciate any help
what trying to do is when the race is finnished everyone that be in the race will respawn back (out of race)
so I set a timer for the last checkpoint in the race for 30 seconds
when any player reaches that checkpoint it will start the count
and after 30 seconds it will need to respawn all players (only the players that be in the race)
how will it be possible ?
becouse I don't want it to be respawning players that are not in race
and worst I don't want it to respawn only the player that finnished the race
I want it to respawn everyone in race
here is what I did
Код:
SetTimerEx("StopRace", 30000, false, "i");// Start a 30 second timer to finnish the race public StopRace(playerid) { if(InRace[playerid] == 1) { SpawnPlayer(playerid); InRace[playerid] = 0; }