MONEY
#5

Quote:
Originally Posted by NuggaN
Посмотреть сообщение
Hey guys, I want to do a buylevel cmd. Well, if the player has less than 15k, he shouldnt be able to buy it, cuz he still can get in minus. How do I set this, that his money wont get into minus? Just if he hasnt got 15k he cant buy
pawn Код:
new money = GetPlayerMoney(playerid);
if(money >= 15000)
{
/// do something here
}
else return SendClientMessage(playerid, -1, "U don't have 15k");
This way the players money wont go into the negative.
Reply


Messages In This Thread
MONEY - by NuggaN - 18.03.2013, 00:53
Re: MONEY - by Scenario - 18.03.2013, 00:55
Re: MONEY - by Glad2BeHere - 18.03.2013, 00:56
Re: MONEY - by Don_Cage - 18.03.2013, 01:13
Re: MONEY - by kamzaf - 18.03.2013, 01:13
Re: MONEY - by Scenario - 18.03.2013, 01:18
Re: MONEY - by NuggaN - 18.03.2013, 01:31
Re: MONEY - by CJay9209 - 18.03.2013, 02:54

Forum Jump:


Users browsing this thread: 1 Guest(s)