Having problem while spawning a player.
#2

SetSpawnInfo works for me. I have mine structured like this:

pawn Код:
TogglePlayerSpectating(playerid, true) // under OnPlayerRequestClass
// player logins in/registers
TogglePlayerSpectating(playerid, false) // after login/register
SetSpawnInfo(..) // using proper coordinates and such
SpawnPlayer(playerid) // just after SetSpawnInfo
Perhaps what you ought to try is to make it so the dialog asking them where to spawn comes up BEFORE you turn off the spectating mode. Let them select where to spawn, and under the spawn selection dialog, THEN you would toggle spectating off, use SetSpawnInfo and SpawnPlayer.

Try that and see how it works! D
Reply


Messages In This Thread
Having problem while spawning a player. - by Aeronexx - 19.08.2013, 16:07
Re: Having problem while spawning a player. - by Scenario - 19.08.2013, 17:29
Re: Having problem while spawning a player. - by Aeronexx - 19.08.2013, 17:38
Re: Having problem while spawning a player. - by Scenario - 19.08.2013, 17:41
Re: Having problem while spawning a player. - by Aeronexx - 19.08.2013, 17:49
Re: Having problem while spawning a player. - by Scenario - 19.08.2013, 18:02
Re: Having problem while spawning a player. - by Aeronexx - 19.08.2013, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)