06.03.2010, 21:37
Quote:
Originally Posted by hardstop
Код:
if(listitem == 0) //M4 { SendClientMessage(playerid, COLOR_PURPLE, "* Sa ostsid M4"); GivePlayerMoney(playerid,-30); GivePlayerWeapon(playerid,31,500); I want that if you dont have enough money you cant buy how can i do like that? |
Код:
if(listitem == 0) //M4 { if(GetPlayerMoney(playerid) < 30) { SendClientMessage(playerid, COLOR_PURPLE, "* Sa ostsid M4"); GivePlayerMoney(playerid,-30); GivePlayerWeapon(playerid,31,500); }