22.04.2009, 13:28
hello i found a command from forum,how i can make it like i can buy it only in ammunations?
code is here
code is here
Quote:
if (strcmp(cmdtext, "/desert", true)==0) { if(GetPlayerMoney(playerid) > 1999){ GivePlayerMoney(playerid, -2000); GivePlayerWeapon(playerid,24,800); SendClientMessage(playerid,GRAY,"Enjoy!"); new desert[MAX_PLAYER_NAME]; GetPlayerName(playerid, desert, MAX_PLAYER_NAME); format(string, sizeof(string), "%s buy a desert eagle - /weapons", desert); SendClientMessageToAll(GRAY, string); } else{ SendClientMessage(playerid,RED,"You dont have money!"); } return 1; } |