ok you put a new variable at top of script
new oldskin[MAX_PLAYERS];
now under OnPlayerSpawn
You put skinold[playerid] = GetPlayerSkin(playerid);
now the Skin the player spawns is saved into this Variable
Now on commands add this one!
Example of what too do you can change adminoff to unwearskin etc.
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/adminoff", cmdtext, true, 10) == 0)
{
SetPlayerSkin(playerid, skinold[playerid]);
return 1;
}
And there is another methord but i suggest the one above more unique but you can just do a setskin
Code:
if(strcmp(cmd, "/setskin", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setskin [playerid] [skinid]");
return 1;
}
Hope this help's you need help just message back.