Raised This Month: $ Target: $400
 0% 

Infiniti ammo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
layka_LUBII
Senior Member
Join Date: Jul 2012
Old 04-21-2013 , 08:58   Re: Infiniti ammo
Reply With Quote #7

I have a shop
In the shop have Infiniti Ammo
Infiniti Ammo cost 10 000
But Infiniti Ammo is on 1 round
I need to Infiniti Ammo to 15 sec to 1 round
Thank you

CAse SHOPu

Code:
case 6:
		{
			if(get_user_flags(id) & ADMIN_LEVEL_H)
			if(money >= costunlimitedammo)
			{
				ammo[id] = 1
				cs_set_user_money(id, money - costunlimitedammo)
				ChatColor(id, "!team[ Furien ] !yKupil si Nekonecnu municiu")
				} else {
				client_print(id, print_center, "Nemas dostatek penez")
				client_cmd(0, "speak %s", Sound)
			         } 
			         else 
			         {
				ChatColor(id, "!team[ Furien ] !yTato polozka je urcena vip hracom.")
			         }
		}
-----------------------------------
This is infiniti ammo

Code:
public event_CurWeapon(id)
{
        if(ammo[id] == 0)
                return PLUGIN_CONTINUE;

        static wpnid, clip;
        wpnid = read_data(2);
        clip = read_data(3);
        give_ammo(id , wpnid , clip);

        return PLUGIN_CONTINUE;
}

public give_ammo(id , wpnid , clip)
{
        if(ammo[id] == 0)
                return;
        if(wpnid==CSW_C4 || wpnid==CSW_KNIFE || wpnid==CSW_HEGRENADE || wpnid==CSW_SMOKEGRENADE || wpnid==CSW_FLASHBANG)
                        return;

        if(!clip)
        {
                static weapname[33];
                get_weaponname(wpnid , weapname , 32);

                static wpn
                wpn = -1;
                while((wpn = find_ent_by_class(wpn , weapname)) != 0)
                {
                        if(id == entity_get_edict(wpn , EV_ENT_owner))
                        {
                                cs_set_weapon_ammo(wpn , maxclip(wpnid))
                                break;
                        }
                }
        }
}

stock maxclip(wpnid)
{
        static ca;
        ca = 0;

        switch (wpnid)
        {
                case CSW_P228 : ca = 13;
                case CSW_SCOUT : ca = 10;
                case CSW_HEGRENADE : ca = 0;
                case CSW_XM1014 : ca = 7;
                case CSW_C4 : ca = 0;
                case CSW_MAC10 : ca = 30;
                case CSW_AUG : ca = 30;
                case CSW_SMOKEGRENADE : ca = 0;
                case CSW_ELITE : ca = 15;
                case CSW_FIVESEVEN : ca = 20;
                case CSW_UMP45 : ca = 25;
                case CSW_SG550 : ca = 30;
                case CSW_GALI : ca = 35;
                case CSW_FAMAS : ca = 25;
                case CSW_USP : ca = 12;
                case CSW_GLOCK18 : ca = 20;
                case CSW_AWP : ca = 10;
                case CSW_MP5NAVY : ca = 30;
                case CSW_M249 : ca = 100;
                case CSW_M3 : ca = 8;
                case CSW_M4A1 : ca = 30;
                case CSW_TMP : ca = 30;
                case CSW_G3SG1 : ca = 20;
                case CSW_FLASHBANG : ca = 0;
                case CSW_DEAGLE : ca = 7;
                case CSW_SG552 : ca = 30;
                case CSW_AK47 : ca = 30;
                case CSW_P90 : ca = 50;
        }
        return ca;
}
layka_LUBII is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode