respawn help
#1

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

Код:
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;
	}
appreciate any help
Reply


Messages In This Thread
respawn help - by TwoTone - 23.02.2018, 12:12
Re: respawn help - by TwoTone - 23.02.2018, 12:49
Re: respawn help - by RogueDrifter - 23.02.2018, 12:52
Re: respawn help - by TwoTone - 23.02.2018, 13:04
Re: respawn help - by AstroPoid - 23.02.2018, 14:56
Re: respawn help - by AstroPoid - 23.02.2018, 15:00
Re: respawn help - by TwoTone - 23.02.2018, 15:08
Re: respawn help - by AstroPoid - 23.02.2018, 15:12
Re: respawn help - by TwoTone - 23.02.2018, 15:15
Re: respawn help - by AstroPoid - 23.02.2018, 15:16

Forum Jump:


Users browsing this thread: 2 Guest(s)