Skin revert
#1

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.
Reply
#2

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)