0.3x selection menu /buyclothes
#2

Use
pawn Код:
new skinlist = mS_INVALID_LISTID;
pawn Код:
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);
                ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
            }
        }
        return 1;

    }
place this OnGameModeInit()
pawn Код:
skinlist = LoadModelSelectionMenu("skins.txt");
if I'm right this should work download this http://adf.ly/JVfHH and put it in your scriptfile and it should work!
Reply


Messages In This Thread
0.3x selection menu /buyclothes - by Godzilla8957 - 20.02.2013, 20:15
Re: 0.3x selection menu /buyclothes - by McFellow - 20.02.2013, 20:32
Re: 0.3x selection menu /buyclothes - by Godzilla8957 - 20.02.2013, 20:39
Re: 0.3x selection menu /buyclothes - by McFellow - 20.02.2013, 20:45
Re: 0.3x selection menu /buyclothes - by Godzilla8957 - 20.02.2013, 20:52
Re: 0.3x selection menu /buyclothes - by Godzilla8957 - 20.02.2013, 23:14
Re: 0.3x selection menu /buyclothes - by Peach - 20.02.2013, 23:48

Forum Jump:


Users browsing this thread: 3 Guest(s)