Need help!
#1

When I join my server and select a skin, I get spawned in the middle of nowhere. Can anyone please help me?

Screenshot :
Reply
#2

It's kind of obvious your interior ID is wrong.

pawn Код:
SetPlayerInterior(playerid,0);
Reply
#3

When I type /kill and then spawn again at the same place, it's all okay!

I need to suicide for fixing this
Reply
#4

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.
Reply
#5

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.
Reply
#6

IT WORKS!!!!!!!

THANKYOU, +rep
Reply
#7

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.
Reply
#8

Let me check.
Reply
#9

OMG, Thankyousomuch again!

Now I have the interior I wanted and also i'm not in the middle of nowhere in anything!
Reply
#10

No problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)