29.05.2010, 15:26
Quote:
Originally Posted by Memoryz
Under the gate command of the script that you download, just add this:
Код:
GivePlayerMoney(playerid, -15); You can change 15 to anything you want, but make sure you keep the negative sign "-" infront of it. |
So you can make something like that:
pawn Код:
if(GetPlayerMoney(playerid) >= 15)
{
MoveObject(/*positions*/);
SetPlayerMoney(playerid,-15);
}
else
{
SendClientMessage(playerid,COLOR,"You don't have enough money,you need 15$.");
}