Set player last skin
#1

Hello,

I've made something for LSEMS that when you go on duty and take duty clothes, and then go off duty you get your skin back that you had before taking duty clothes..

I tried the same for the LSPD but that dont wanna work..


Police
pawn Код:
if(Player[playerid][CopDuty] == 1)
                        {
                            SetPlayerSkin(playerid, Player[playerid][LastSkin]);
                            Player[playerid][CopDuty] = 0;
                            SendClientMessage(playerid, WHITE, "You are now off police duty.");
                            SetPlayerArmour(playerid, 0);
                        }
                        else
                        {
                            Player[playerid][CopDuty] = 1;
                            SendClientMessage(playerid, WHITE, "You are now on police duty.");
                            SetPlayerArmour(playerid, 100);
                        }
                    }
Medic:
pawn Код:
if(Player[playerid][MedicDuty] == 1)
                        {
                            Player[playerid][MedicDuty] = 0;
                            SetPlayerSkin(playerid, Player[playerid][LastSkin]);
                            SendClientMessage(playerid, WHITE, "You are no longer on medic duty. You won't recieve calls.");
                        }
                        else
                        {
                            Player[playerid][MedicDuty] = 1;
                            SendClientMessage(playerid, WHITE, "You are now on medic duty. You will recieve calls.");
                        }
                    }
Reply


Messages In This Thread
Set player last skin - by Stefand - 09.06.2012, 08:46
Re: Set player last skin - by [KHK]Khalid - 09.06.2012, 08:54
Re: Set player last skin - by James Coral - 09.06.2012, 08:56
Re: Set player last skin - by Stefand - 09.06.2012, 09:27

Forum Jump:


Users browsing this thread: 1 Guest(s)