SA-MP Forums Archive
[Help] Saving position when reconnect in server [rep+1] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Saving position when reconnect in server [rep+1] (/showthread.php?tid=321627)



[Help] Saving position when reconnect in server [rep+1] - ProdrifterX - 27.02.2012

Hi guys.. )
I need saving position.. example.:
when you type /q its saving position
and when you join again and spawn, teleports to your position when u quit the game.. (when u was walking,driving before)
thanks
repping!
_______________________
IP : 188.40.57.132:7777
Drift - Generation



Re: [Help] Saving position when reconnect in server [rep+1] - andmeida10 - 27.02.2012

study dini or other saving system and learn how to create a Float saving system whit it


Re: [Help] Saving position when reconnect in server [rep+1] - ProdrifterX - 29.02.2012

nope.!
someone knows?!


Thanks!


Re: [Help] Saving position when reconnect in server [rep+1] - milanosie - 29.02.2012

nope? nope?

Why is your awnser "nope" to "study to save"?

Studieng aint a bad thing, its even better then getting the code from someone,


Re: [Help] Saving position when reconnect in server [rep+1] - Champ - 29.02.2012

this filterscript will help you ↓

https://sampforum.blast.hk/showthread.php?tid=90556



Re: [Help] Saving position when reconnect in server [rep+1] - Walsh - 29.02.2012

Make floats that will hold the players position. Then OnPlayerDisConnect you will use GetPlayerPos and use the floats as the xyz. Then OnPlayerSpawn add an if statement to check if any of the floats equal zero then spawn them at the (noobie) spawn. If their x float is higher than 0, then SetPlayerPos with the floats.


Re: [Help] Saving position when reconnect in server [rep+1] - ProdrifterX - 29.02.2012

listen brothas..
i've make and i learn
but i need to remove spawn coordinates and when you spawn caracter falls down (first time when you enter)
but if you join 2nd time and example type /sf and /q and reconnect it spawns to your last place (sf)
how to fix it ? hmmm