SA-MP Forums Archive
Spawn Buttons - Help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Spawn Buttons - Help. (/showthread.php?tid=416248)



Spawn Buttons - Help. - SilencedPistol - 16.02.2013

Okay, so I have this issue with my script. Whenever I log in, I have to type in my password in the register system, but then it directs me to my spawn position, but in order to spawn I need to click the right/left arrow about 30 times and then press Spawn, if I dont, the screen is like.. a flashy yellow/black and then it says "Stay within the world boundaries" or something like that.

Do you guys know how to fix this? I've got it so that they spawn at Unity and the camera points at Unity when they log in, but when I finally press spawn it teleports me under Blueberry and I fall.


Re: Spawn Buttons - Help. - Lady-Happy - 17.02.2013

Send us the onplayerspawn script.


Re: Spawn Buttons - Help. - leong124 - 17.02.2013

I guess it has to do with something like "spawn at last disconnected position" or SetSpawnInfo with wrong data. Code is needed though, especially SetPlayerPos and SetSpawnInfo.
Btw, this thread should be moved to scripting help as there is nothing related to 0.3x, but an ordinary problem.

Edit:
****** got the right answer I think.


Re: Spawn Buttons - Help. - Johndaonee - 18.02.2013

Please write back if you find the solution, I get it everytime I die ingame.

Might be the AddPlayerClass thing as that's the only thing I have not tried


Re: Spawn Buttons - Help. - Bakr - 18.02.2013

Quote:
Originally Posted by Johndaonee
Посмотреть сообщение
Please write back if you find the solution, I get it everytime I die ingame.

Might be the AddPlayerClass thing as that's the only thing I have not tried
Then why don't you take 3 minutes to try it instead of waiting potentially days for a response...? Not adding a class is the only time I've seen this happen.


Re: Spawn Buttons - Help. - Scenario - 19.02.2013

Quote:
Originally Posted by Bakr
Посмотреть сообщение
Not adding a class is the only time I've seen this happen.
I'll second this.


Re: Spawn Buttons - Help. - Johndaonee - 21.02.2013

Quote:
Originally Posted by Bakr
Посмотреть сообщение
Then why don't you take 3 minutes to try it instead of waiting potentially days for a response...? Not adding a class is the only time I've seen this happen.
Time is money and thanks for telling

// Edit.
Has nothing to do with the AddPlayerClass, damnit


Re: Spawn Buttons - Help. - SilencedPistol - 27.02.2013

I'm gonna post the script later to show you guys. It still is happening.

What lines do I need to post?


Re: Spawn Buttons - Help. - leong124 - 27.02.2013

Does any other players have this problem too?
For me, I'll usually comment out different part of my mode until the problem doesn't exist, so that I can know which part of it causes the problem.