19.08.2013, 17:29
SetSpawnInfo works for me. I have mine structured like this:
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
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
Try that and see how it works! D