If you "do nothing" you can just use this:
pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
{
if(IsAtClothShop(playerid))
{
tmp = strtok(cmdtext, idx);
new chosenskin = strval(tmp);
SetPlayerSkin(playerid, chosenskin);
}
else return 1;//Works as a { else } without the brackets
return 1;
}
Or even easyer:
pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
{
if(!IsAtClothShop(playerid)) return 1; //if the player is NOT at a clothing shop (hence the "!")
tmp = strtok(cmdtext, idx);
new chosenskin = strval(tmp);
SetPlayerSkin(playerid, chosenskin);
return 1;
}