09.04.2017, 17:48
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:
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(playerid, 50);
SendClientMessage(playerid, GREEN, "You are now on garbage collector duty.");
}
else
{
PlayerInfo[playerid][TrashDuty] = 0;
SetPlayerSkin(playerid, 3);
PlayerInfo[playerid][FreeSkin] = 1;
SendClientMessage(playerid, GREEN, "You are not on garbage collector duty anymore. You can change ur skin for free once by using /freeskin");
}