If player money is lower then ...
#4

Add this in your command.
Since you didn't post the command, you'll have to work it in it.
pawn Код:
new cash = GetPlayerMoney(playerid);// Gets the player cash
if(cash <= 175) //  Makes sure you have 175$ or more. If this doesn't work, do >= instead.
{
    SendClientMessage(playerid, 0xFFFFFF, " You do not have the funds.");// Sends the error message
    return 1;
}
else // If they have the cash then....
{
    // Do stuff here. Allows you to purchase the item
}
Reply


Messages In This Thread
If player money is lower then ... - by NicholasA - 23.12.2012, 17:12
Re: If player money is lower then ... - by Faisal_khan - 23.12.2012, 17:16
Re: If player money is lower then ... - by ikey07 - 23.12.2012, 17:19
Re: If player money is lower then ... - by Lynn - 23.12.2012, 17:19
Re: If player money is lower then ... - by Universal - 23.12.2012, 17:20
Re: If player money is lower then ... - by NicholasA - 23.12.2012, 17:22
Re: If player money is lower then ... - by MP2 - 23.12.2012, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)