pawn Код:
new
bool: usou[MAX_PLAYERS];
if(!strcmp(cmdtext, "/profadmin", true))
{
if(PlayerInfo[playerid][pAdmin] < 1)
return SendClientMessage(playerid, -1, "Apenas administradores!!");
if(usou[playerid] == 0)
return SetPVarInt(playerid, "Skin", GetPlayerSkin(playerid));
else if(usou[playerid] == 1)
return SetPlayerSkin(playerid, GetPVarInt(playerid, "Skin"));
return true;
}