01.06.2013, 22:17
(
Последний раз редактировалось Paradis; 02.06.2013 в 02:19.
)
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
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