Having problem while spawning a player.
#1

SOLVED!
Reply
#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
#3

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
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
I tried that, but It always TP'ed me to blueberry no matter.
Reply
#4

There are 13,000 active members on this forum. At least 50% of which speak English and can help with this problem. Why would you limit your responses to just one person via Skype/PM? Plus, I don't do private help for people often.

Are you using actual float values for the XYZ coordinates, or are you loading them from a variable? Blueberry is 0.0, 0.0, 0.0- the default value of new integers/floats.
Reply
#5

SOLVED!
Reply
#6

TogglePlayerSpectating() should come BEFORE you use SetSpawnInfo.
Reply
#7

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
TogglePlayerSpectating() should come BEFORE you use SetSpawnInfo.
Ha-ha, silly me I was putting coordinates in a incorrect order, needed my sobiet to get the actual one.

Worked just fine.

Thanks for the help

+Rep'ed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)