Saving player skin onduty/offduty
#1

Hi everyone.
I have some job scripts which requires the player to go on duty.
The problem is, that i do not know how to save and restore the players skin.
Because when you go on garbage collector duty, your skin gets changed.
When you go off-duty it now gives you a skin and a free skin change.
Does anyone have an example for me on how to save and restore it?

code:
PHP код:
if(PlayerInfo[playerid][TrashDuty] == 0)
            {
                
PlayerInfo[playerid][TrashDuty] = 1;
                
SetPlayerSkin(playerid50);
                
SendClientMessage(playeridGREEN"You are now on garbage collector duty.");
              }
              else
              {
                  
PlayerInfo[playerid][TrashDuty] = 0;
                
SetPlayerSkin(playerid3);
                
PlayerInfo[playerid][FreeSkin] = 1;
                
SendClientMessage(playeridGREEN"You are not on garbage collector duty anymore. You can change ur skin for free once by using /freeskin");
              } 
Reply


Messages In This Thread
Saving player skin onduty/offduty - by jasperschellekens - 09.04.2017, 17:48
Re: Saving player skin onduty/offduty - by Vin Diesel - 09.04.2017, 18:01
Re: Saving player skin onduty/offduty - by grymtn - 09.04.2017, 18:03
Re: Saving player skin onduty/offduty - by Vin Diesel - 09.04.2017, 18:43
Re: Saving player skin onduty/offduty - by grymtn - 09.04.2017, 18:48
Re: Saving player skin onduty/offduty - by Vin Diesel - 09.04.2017, 19:00
Re: Saving player skin onduty/offduty - by Bwandon - 09.04.2017, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)