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