saving - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: saving (
/showthread.php?tid=129935)
saving -
aircombat - 24.02.2010
ok i have a question about saving
is there a way to save the player's color and skin so when he reconnects he get the same color or skin
plz give me a link for tutorial or tell me how to do it
________
Body science
Re: saving -
Correlli - 24.02.2010
Use dINI/dUDB system or DJson or any other you like (there are "How to use" tutorials in their topics). You'll just need to use GetPlayerColor function to get the player color and GetPlayerSkin to get the player skin.
Note that you'll need to set player's color before you use GetPlayerColor.
Re: saving -
adsy - 24.02.2010
i have a system that could be adapted for that. It stores the colour id to a variable like this
new varname[MAX_PLAYERS];
varname[playerid] = getplayercolour(playerid);