01.08.2012, 16:08
Код:
if(strcmp(cmd, "/clothes", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtClothShop(playerid))
{
new clothesid;
clothesid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE,"USAGE: /clothes [Skin ID]");
return 1;
}
GivePlayerMoney(playerid,-150);
SafeGivePlayerMoney(playerid, - 150);
SetPlayerSkin(playerid, strval(tmp));
SendClientMessage(playerid, COLOR_LIGHTBLUE,"That is $150, please. ");
format(string, sizeof(string)," Thankyou, you have changed your skin, to skin id %d! ", clothesid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, " You are not in a Clothing Shop !");
return 1;
}
return 1;
}
}

