19.06.2011, 18:50
Quote:
if (strcmp("/Rifle", cmdtext, true)) { if (GetPlayerMoney(playerid) < 6000) { SendClientMessage(playerid,0xFF0000AA, "You dont have enough money, you need 6000$!"); return 1; } SendClientMessage(playerid, 0xFF0000AA,"You have bought a Country Rifle, Enjoy!"); GivePlayerMoney(playerid, -6000); GivePlayerWeapon(playerid, 33, 500); return 1; } |
Note: The command above is used for all commands, just the price,sendclientmessage,weaponid,etc are changed, but all commands look like that.