[Bug] Spawn under map
#8

I've try another FS but it's the same problem, when i spawn for the first time i spawn under map ( 0;0;0 ). But with this FS, he save my position *.* and load it when i spawn.

But where's the problem? Why i spawn under the map (and not next to the station train)?

EDIT : I've try all i can do... Nothing work because i've find the problem.

My save position system do SetPlayerPos(playerid,positionx,positiony,position z) in OnPlayerSpawn

So, same if i've a addplayerclass in OnPlayerModeInit, i spawn under the map in 0;0;0;0 because OnPlayerModeInit is ignorate.

So i think i need someone like :

if the first connexion
spawn next to station train
else if the second or more connexions
spawn at position save in the file, so SetPlayerPos(playerid,positionx,positiony,position z)

How can i do this?

I've do :

new Fspawn (for First Spawn),

In OnPlayerRequestClass (i've try also with OnGameInit) i've do Fspawn = 1
And in OnPlayerSpawn i've do : if ((Fspawn) == 1)
AddPlayerClass etc...

But don't work...

Please help me

I've do a new topic more explicit
Reply


Messages In This Thread
[Bug] Spawn under map - by Paradis - 01.06.2013, 01:44
Re: [Bug] Spawn under map - by Paradis - 01.06.2013, 18:26
Re: [Bug] Spawn under map - by DeMoX - 01.06.2013, 18:39
Re: [Bug] Spawn under map - by DobbysGamertag - 01.06.2013, 18:45
Re: [Bug] Spawn under map - by Paradis - 01.06.2013, 19:30
Re: [Bug] Spawn under map - by DobbysGamertag - 01.06.2013, 19:56
Re: [Bug] Spawn under map - by Paradis - 01.06.2013, 20:03
Re: [Bug] Spawn under map - by Paradis - 01.06.2013, 22:17
Re: [Bug] Spawn under map - by DobbysGamertag - 02.06.2013, 02:26
Re: [Bug] Spawn under map - by Paradis - 02.06.2013, 03:07

Forum Jump:


Users browsing this thread: 1 Guest(s)