24.08.2012, 18:11
Код:
if(strcmp(cmd, "/Buyclothes", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAtClothShop(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE,"USAGE: /Buyclothes [Skin ID]"); return 1; } new level = strval(tmp); GivePlayerMoney(playerid,-200); SafeGivePlayerMoney(playerid, - 200); if(!IsValidSkin(level)) return SendClientMessage(playerid, COLOR_GREY, "Wrong skin ID!"); PlayerInfo[playerid][pChar] = level; SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); } } return 1; }