SA-MP Forums Archive
Login System Help ! (+1 REp ) !! - 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: Login System Help ! (+1 REp ) !! (/showthread.php?tid=347023)



Login System Help ! (+1 REp ) !! - Avi57 - 31.05.2012

Hi Guys,
I have created this Login script :http://pastebin.com/LY8pU5vd

when a Player register it says, Relog to save ur stats ! So can someone tell me How can i make it like that, without re-logging, It can save stats ? and when we Register it always Tp us to Here :



Hope you WIll Help me !!
Thanks..............


Re: Login System Help ! (+1 REp ) !! - iFederal - 31.05.2012

It already saves your stats, This all means.. that when player logs out, his stats saves.


Re: Login System Help ! (+1 REp ) !! - Chris1337 - 31.05.2012

Well .. For this saving system (

For the Saving stuff issues :

* - I will Create a Timer that repeats so , Every x amount of time it will save

For the Spawn
*- Just Remove the SetPlayerPos(); and add your coords


Re: Login System Help ! (+1 REp ) !! - Issam - 31.05.2012

Just ignore that dialog of 'reconnect', cause when someone disconnects whether it's a crash or /quit, it automatically save his stats, and post - OnPlayerSpawn, if you want to change spawning coords.
EDIT: Wooooooow, they're fast, however change spawn coords from OnPlayerSpawn.


Re: Login System Help ! (+1 REp ) !! - Avi57 - 31.05.2012

Guys i have two teams, so when player register it doesnot show Team selection Option But when Player relogs then it shows.........


Re: Login System Help ! (+1 REp ) !! - Chris1337 - 31.05.2012

The use instead of SpawnPlayer();

Use SetPlayerToClassSelection(playerid);