Saving player skin onduty/offduty
#7

Personally I use PVars for SetPlayerBacks (Such as entering paintball... ect).
PHP код:
if(PlayerInfo[playerid][TrashDuty] == 0) {
    
PlayerInfo[playerid][TrashDuty] = 1;
    
SetPVarInt(playerid"OldSkin"GetPlayerSkin(playerid) + 1); // +1 to avoid CJ skin.
       
SetPlayerSkin(playerid50);
      
SendClientMessage(playeridGREEN"You are now on garbage collector duty.");
} else {
     
PlayerInfo[playerid][TrashDuty] = 0;
     new 
oldskin GetPVarInt(playerid"OldSkin") - 1// -1 because the reason above.
     
DeletePVarInt(playerid"OldSkin");
    
SetPlayerSkin(playeridoldskin);
    
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: 2 Guest(s)