Simple Help [+rep for helpers]
#1

I need command to do if someone dont have a money he can not to buy items... Thanks for helpers I will +rep them.
Reply
#2

Very basic. Can easily be implemented into your script.
pawn Код:
new money = GetPlayerMoney(playerid);
if(money < 5000) return SendClientMessage(playerid,COLOR, "You don't have enough money to buy this item.");
Reply
#3

Just put this (or similar) in the command to buy, as i assume you already have the command, you just need to get to not buy it if they can't afford it;

Код:
if(GetPlayerMoney(playerid) < YOUR_CAR_COST HERE) return SendClientMessage(playerid,COLOR_RED,"You cannot afford this!");
Reply
#4

Thanks guys !
Reply
#5

Not a problem. Good luck.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)