Spawning
#1

Alright, I posted this one time, and got an answer that helped, but it must have been deleted plus I have forgotten how to do it.

I have a Position Saving system which updates a players position every second.
When the player logs out and comes back on, it lets the player spawn back to their logged off position.
But when the server is GMX'd and the player is online, they don't teleport to their original position, they teleport out in nowhere, in blueberry.

I have it save the X, Y, Z, Interior, And Virtual World.
And when they Connect it loads up the X, Y, Z, Interior, And Virtual World.
And its supposed to Set their Position to X, Y, Z and their interior and Virtual world.

But it doesn't
Reply
#2

What kind of saving are you using? :O
Reply
#3

Using fopen, fclose.

I had someone look at my script, and they say its similiar to the GodFather one.
Its got like PlayerInfo.
Reply
#4

And the position is saved correctly? :O
Reply
#5

Yes its saved correctly, I looked in scriptfiles.
It only happens on GMX.
Works all good with normal disconnects, just not when they spawn after a GMX
Reply
#6

When I understand correctly:
The problem is just when it's saved after a GMX?
Reply
#7

Correct.
Reply
#8

Can you show us the OnGameModeExit and your save code pls?
Reply
#9

I don't use OnGamemodeExit
Reply
#10

Oh I know.
Its because when the person goes to OnGamemodeExit, it updates, and there person is out in nowhere.
But it updates their file, thus giving me this.
I know what I did to prevent this.
Problem Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)