[HELP] About Money...
#1

Код:
GivePlayerWeapon(playerid, 30, 500);
        GivePlayerMoney(playerid, -10000);
i want something like, if the player doesn't got enough money then he can't buy the item.

what code i need?

Sorry for my english
Reply
#2

pawn Код:
new money = GetPlayerMoney(playerid); // new variable which contains how much $ the player has
if(money >= 10000) // If they have more than or have 10000
{
  // your code
}
else // Else
{
  // Do something if they dont
}
Try that out.
Reply
#3

thank you ^^
Reply
#4

i have tutorial: http://forum.sa-mp.com/index.php?topic=120543.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)