24.08.2015, 23:43
pawn Код:
else if(clickedid == TDEditor_TD[9])
{
//Buy m4
if(GetPlayerMoney(playerid) < 0)
{
SendClientMessage(playerid, -1, "You don't have enough money to purchase this item.");
return 1;
}
GivePlayerWeapon(playerid,WEAPON_M4,1500);
GivePlayerMoney(playerid,-1800);
SendClientMessage(playerid,0x00FF00,"You Bought M4-A1 with 1500 ammo");
}