Posts: 296
Threads: 9
Joined: Oct 2011
Reputation:
0
No, you probably have SetPlayerInterior(playerid,<someinterior>); somwhere in your script that only runs when you join the server.
You need to find that code and remove it, and set interior to 0 instead. But, if you have a system that saves position and interior when you disconnect, and puts you back to your position and interior when you join, you might wanna fix that so it actually sets the correct one.
Posts: 24
Threads: 9
Joined: Jan 2015
Reputation:
0
It was under OnPlayerRequestClass, It was SetPlayerInterior(playerid,3);.
I made it as you said SetPlayerInterior(playerid,0);
Still I'm spawning in the middle of nowhere.
Posts: 24
Threads: 9
Joined: Jan 2015
Reputation:
0
IT WORKS!!!!!!!
THANKYOU, +rep
Posts: 296
Threads: 9
Joined: Oct 2011
Reputation:
0
Nice! Although, if you have a certain location for when you select skin (this is when OnPlayerRequestClass runs), you might be "in the middle of nowhere" while selecting skin instead.
You should be able to keep interior 3 in OnPlayerRequestClass if you put SetPlayerInterior(playerid,0); at the very end of OnPlayerSpawn.