Save old skin help - 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: Save old skin help (
/showthread.php?tid=313196)
Save old skin help -
mhamadsaleh - 24.01.2012
Hi is there is any way so i can save the old skin when i type a command that uses another skin.
I need this because im creating a TDM for my server and i want it so when the player joins the skin changes and when he leaves the DM he gets his old skin back.
Thanks in advanced
Re: Save old skin help -
Jefff - 24.01.2012
Top
pawn Код:
new OldSkin[MAX_PLAYERS] = {999,...};
connect/disconnect
command
pawn Код:
OldSkin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid,new_skin_ID);
leave DM
pawn Код:
if(OldSkin[playerid] != 999) {
SetPlayerSkin(playerid,OldSkin[playerid]);
OldSkin[playerid] = 999;
}