Buyguns menu
#9

dude see his dialog he giving brackets in last see

pawn Код:
#define BUYGUNS 9754

if(dialogid == 9754)
{
        if(response)
        {
            if(listitem == 0)
            {
                if(GetPlayerMoney(playerid) > 1000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have that much!");
                GivePlayerCash(playerid, -1000);
                GameTextForPlayer(playerid, "~r~ -1000$", 5000, 1);
                GivePlayerValidWeapon(playerid, 22, 60000);
            }
            if(listitem == 1)
            {
                if(GetPlayerMoney(playerid) > 5000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have that much!");
                GivePlayerCash(playerid, -5000);
                GameTextForPlayer(playerid, "~r~ -5000$", 5000, 1);
                GivePlayerValidWeapon(playerid, 25, 60000);
            }
            if(listitem == 2)
            {
            if(GetPlayerMoney(playerid) > 10000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have that much!");
            GivePlayerCash(playerid, -10000);
            GameTextForPlayer(playerid, "~r~ -10000$", 5000, 1);
            GivePlayerValidWeapon(playerid, 33, 60000);
            }
        }
        return 1;
}
dude see his dialog he giving brackets in last see

pawn Код:
#define BUYGUNS 9754

if(dialogid == 9754)
{
        if(response)
        {
            if(listitem == 0)
            {
                if(GetPlayerMoney(playerid) > 1000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have that much!");}//Here
                GivePlayerCash(playerid, -1000);
                GameTextForPlayer(playerid, "~r~ -1000$", 5000, 1);
                GivePlayerValidWeapon(playerid, 22, 60000);
            }
            if(listitem == 1)
            {
                if(GetPlayerMoney(playerid) > 5000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have that much!");}//Here
                GivePlayerCash(playerid, -5000);
                GameTextForPlayer(playerid, "~r~ -5000$", 5000, 1);
                GivePlayerValidWeapon(playerid, 25, 60000);
            }
            if(listitem == 2)
            {
            if(GetPlayerMoney(playerid) > 10000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have that much!");}//Here
            GivePlayerCash(playerid, -10000);
            GameTextForPlayer(playerid, "~r~ -10000$", 5000, 1);
            GivePlayerValidWeapon(playerid, 33, 60000);
            }
        }
        return 1;
}
Reply


Messages In This Thread
Buyguns menu - by lider1241 - 05.09.2013, 11:18
Re: Buyguns menu - by WopsS - 05.09.2013, 11:42
Re: Buyguns menu - by lider1241 - 05.09.2013, 11:48
Re: Buyguns menu - by WopsS - 05.09.2013, 12:45
Re: Buyguns menu - by Konstantinos - 05.09.2013, 12:51
Re: Buyguns menu - by IceBilizard - 05.09.2013, 13:42
Re: Buyguns menu - by lider1241 - 05.09.2013, 14:39
Re: Buyguns menu - by WopsS - 05.09.2013, 14:40
Re: Buyguns menu - by IceBilizard - 05.09.2013, 14:45
Re: Buyguns menu - by IceBilizard - 05.09.2013, 14:50

Forum Jump:


Users browsing this thread: 2 Guest(s)