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

pawn Код:
SetPlayerSkin(playerid, Player[playerid][LastSkin]);
This line should be working properly. But as it doesn't then show us the codes where
you store a a thing into Player[playerid][LastSkin]
Reply
#3

EDIT: REMOVED
Reply
#4

Fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)