SA-MP Forums Archive
Skin revert - 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: Skin revert (/showthread.php?tid=112467)



Skin revert - wiilweer - 07.12.2009

Lets say..I log in , i use skin ID 161(ex). Now I'm changing my skin to something, like ID 181(ex). Now, how can i make the script to save skin 161. Thought like this that OnGameModeInIt it gets player skin, but it can't coz sometimes admins changes skin to 3rd party e.g 180. I want to know how can go one skin back.


Re: Skin revert - lolumadd - 08.12.2009

You will have to use MySQL or a file writing system (dini or dudb, file) to save his skin id when he disconnects to the server.
When he joins again retrieve the id from the file and set it as his skin using
pawn Код:
SetPlayerSkin(playerid, id);