15.06.2011, 02:45
pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0x919191FF, "Usage: /skin [SKINID]");
return 1;
}
if(PlayerInfo[playerid][pAdmin] < 1 )
{
switch(strval(tmp))
{
case 280:
{
//code
}
}
}
else if(IsAtClothShop(playerid) || PlayerInfo[playerid][pDonateRank] >= 1)
{
new chosenskin = strval(tmp);
SetPlayerSkin(playerid, chosenskin);
PlayerInfo[playerid][pModel] = chosenskin;
return 1;
}
else {
SendClientMessage(playerid, COLOR_YELLOW, " You are not inside a clothing store!");
}
return 1;
}