Save old skin help
#1

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

Top
pawn Код:
new OldSkin[MAX_PLAYERS] = {999,...};
connect/disconnect
pawn Код:
OldSkin[playerid] = 999;
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)