Money help
#1

Alright well, I'm making a /buygun command with dialogs and stuff, So i've got the dialog and stuff all done.

GivePlayerWeapon(playerid, 24, 1)
//The function that would take away my desired cash would be here.

If anyone could help me with a code or something, ill be extremely greatful.
Reply
#2

Код:
if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough money!");
GivePlayerWeapon(playerid, 24, 1);
GivePlayerMoney(playerid, -500);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)