31.05.2011, 14:37
Ok so i made a script that it costs you 1000$ to buy an mp5. I want to make an "if" that checks if you have 0$ will say you don't have money and if you have < 1000 you don't have enough. Please help .
Код:
if (strcmp("/mp5", cmdtext, true, 10) == 0) { GivePlayerMoney(playerid, -1000); GivePlayerWeapon(playerid, 29, 500); SendClientMessage(playerid, COLOR_YELLOW, "You have received a MP5."); return 1; }