20.02.2013, 20:15
hello guys,
for my server i was trying to make a selection menu for /buyclothes but i can't figure it out.. could someone help me
here is the command if you can help me
for my server i was trying to make a selection menu for /buyclothes but i can't figure it out.. could someone help me
here is the command if you can help me
Код:
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][pModel] = level; SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); } } return 1; }