Need some help.
#4

Put it where you give them the gun preferably, give the gun inside the 'if' block. If you give the gun inside a case put it there.

pawn Код:
case 0:
{
    if(GetPlayerMoney(playerid) >= YOUR_GUN_PRICE_HERE)
    {
        //player can afford the gun so give the gun here and reduce money
    }
    else
    {
        //player can't afford the gun send a message
    }
}
Reply


Messages In This Thread
Need some help. - by nogh445 - 25.01.2012, 15:06
Re: Need some help. - by iggy1 - 25.01.2012, 15:08
Re: Need some help. - by nogh445 - 25.01.2012, 15:11
Re: Need some help. - by iggy1 - 25.01.2012, 15:20
Re: Need some help. - by nogh445 - 25.01.2012, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)