SA-MP Forums Archive
Old skin and new skin - 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: Old skin and new skin (/showthread.php?tid=582949)



Old skin and new skin - Sn4ke2 - 24.07.2015

Hi gusy i want to make when player type /join (job) to set the skin "X" And when type /quitjob to set the OLD SKIN ! Can anybody help me ? Thx


Re: Old skin and new skin - xVIP3Rx - 24.07.2015

Save his skin to a variable and set it back to him when he leaves the job..
pawn Код:
new skin[MAX_PLAYERS];

//when he joins a job
skin[playerid] = GetPlayerSkin(playerid);

//when he quit
SetPlayerSkin(playerid, skin[playerid]);



Re: Old skin and new skin - Sn4ke2 - 24.07.2015

Thx i will try and i come back with edit!