09.12.2013, 16:34
I've been trying to make variable that would save player skin while he is on duty ( PD, FBI, etc.. )
Saving skin on variable..
Putting player skin on duty skin.
And this part does not work, when it should set player skin to one that he had before he went on duty..
Saving skin on variable..
Код:
new skin; skin = GetPlayerSkin(playerid); PlayerSkin[playerid] = skin; // THIS VARIABLE
Код:
SetPlayerSkin(playerid, 255); PlayerInfo[playerid][pSkin] = 255;
Код:
new skin = PlayerSkin[playerid]; PlayerInfo[playerid][pSkin] = skin; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);