04.06.2011, 13:03
I have this script to set a skin for a player:
So it works like /skin 152
The problem is if the players not at a clothes shop, instead of doing nothing, it sets skin to 0, even if I type /skin 123 it sets to 0, but I just want it to do nothing, but if player is inside a clothes shop it works 100%.
Код:
if(strcmp(cmd, "/skin", true) == 0)
{
if(IsAtClothShop(playerid))
tmp = strtok(cmdtext, idx);
new chosenskin = strval(tmp);
SetPlayerSkin(playerid, chosenskin);
return 1;
}
The problem is if the players not at a clothes shop, instead of doing nothing, it sets skin to 0, even if I type /skin 123 it sets to 0, but I just want it to do nothing, but if player is inside a clothes shop it works 100%.


