09.06.2009, 09:24
Код:
public OnPlayerSelectedMenuRow(playerid, row) { new Menu:current; new WeaponID; new WeaponCost; //-----------------Change These------------------- WeaponCost = ; WeaponID = ; //-------------------------------------------------- current = GetPlayerMenu(playerid); if(current == weapon4) { switch(row) { case 0: { if (GetPlayerMoney(playerid) >= WeaponCost) { GivePlayerMoney(playerid, -WeaponCost); //Use a negative number to subtract GivePlayerWeapon(playerid, WeaponID, 500); } } } } return 1; }