Help please.
#2

If you made a random spawn function, in the form: RandomSpawn(playerid);

Then using 2 timers (if you teleport a player OnPlayerSpawn it won't work I don't think there has to be a timer there aswell ) you could:

pawn Код:
forward SafePlace(playerid);
forward RandomSpawn(playerid);

public OnPlayerSpawn(playerid)
{
SetTimerEx("SafePlace", 1000, 0, "d", playerid);
}

stock SafePlace(playerid)
{
//put player in safe place, toggle uncontrollable
SetTimerEx("RandomSpawn", 3000, 0, "d", playerid);
}

public RandomSpawn(playerid)
{
//Put player in the battle, toggle controllable
}
Alternatively you could make the AddPlayerClass default location the safe place, and then OnPlayerSpawn you'd only have to toggle them uncontrollable..
Reply


Messages In This Thread
Help please. - by Klutty - 12.05.2009, 14:28
Re: Help please. - by Weirdosport - 12.05.2009, 14:48
Re: Help please. - by Klutty - 12.05.2009, 14:56

Forum Jump:


Users browsing this thread: 1 Guest(s)