need help with command buy
#4

pawn Код:
if(!strcmp(cmdtext, "/buy", true))
{
    if(GetPlayerMoney(playerid) >= 6000)
    {
        GivePlayerMoney(playerid,-6000);
        ///And all other things you want the command to do.
    }
    else return SendClientMessage(playerid,color,"You don't have enough money!");
    return 1;
}
Reply


Messages In This Thread
need help with command buy - by OmarEco - 17.07.2010, 22:09
Re: need help with command buy - by [XST]O_x - 17.07.2010, 22:12
Re: need help with command buy - by OmarEco - 17.07.2010, 22:19
Re: need help with command buy - by Agent Smith - 17.07.2010, 22:22
Re: need help with command buy - by OmarEco - 17.07.2010, 22:25
Re: need help with command buy - by OmarEco - 17.07.2010, 22:29
Re: need help with command buy - by ViruZZzZ_ChiLLL - 17.07.2010, 22:47
Re: need help with command buy - by OmarEco - 17.07.2010, 22:58
Re: need help with command buy - by (.Aztec); - 17.07.2010, 23:38
Re: need help with command buy - by OmarEco - 18.07.2010, 09:02

Forum Jump:


Users browsing this thread: 1 Guest(s)