19.12.2010, 19:42
Quote:
Hi
![]() How to change the /clothes command in clothes shops by a skin command? I mean Raven's /clothes teleports you and you must type 'next' and 'done' and there are not a lot of skins... So how to change this to just come in the clothes shop and type /skin <id> to choose our skin. Thank you |
{
if(IsAtClothShop(playerid))
{
new skin;
tmp=strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "SYNTAX: USE /skin [SKIN]");
skin=strval(tmp);
if(skin==266 || skin==267 ||skin==265 || skin>= 280 && skin<= 290 || skin>=300) return SendClientMessage(playerid, COLOR_RED, "- You can't use this skin.");
SetPlayerSkin(playerid,skin);
PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
PlayerInfo[playerid][pChar] = skin;
format(string, sizeof(string), "* %s change your clothes.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are'nt in a cloth shop");
}
}