Color save - 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: Color save (
/showthread.php?tid=435932)
Color save -
jimis - 09.05.2013
Hi all,i am using luxAdmin system for my server and would like to save player's color on them disconnect,and when the login again then they will get them last color. What code to add on fs??
Re: Color save -
jimis - 09.05.2013
someone??
Re: Color save -
LiamM - 09.05.2013
Don't bump your topic in the space of 15 minutes, just wait for someone to reply to you. There is other people that need help too.
Why not try GetPlayerColor under OnPlayerDisconnect and save it via what ever saving system you use, whether it would be ini, yini, mysql.. save it and when the player logs in, retrieve that information again and use SetPlayerColor under OnPlayerConnect once the server has retrieved the data.
Re: Color save -
jimis - 09.05.2013
ok thanks liam
Re: Color save -
LiamM - 09.05.2013
Quote:
Originally Posted by jimis
ok thanks liam
|
No problem, mate. Any time, if you have any other problems just shoot!