Raised This Month: $12 Target: $400
 3% 

New-Era's Unlimited Ammo v1.0.1 Updated !


Post New Thread Reply   
 
Thread Tools Display Modes
New-Era
BANNED
Join Date: Apr 2008
Old 06-13-2008 , 00:44   Re: Team New-Era's Unlimited Ammo v1.0.1 Updated !
Reply With Quote #31

soccs shhh

Last edited by New-Era; 06-13-2008 at 02:21.
New-Era is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 06-13-2008 , 00:47   Re: Team New-Era's Unlimited Ammo v1.0.1 Updated !
Reply With Quote #32

I'm not hating anyone, and neither is anyone else. Good luck with your future plugins, and good luck with your little team.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Old 06-13-2008, 01:10
New-Era
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 01:38
soccdoodcss
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 02:05
Arkshine
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 02:21
New-Era
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 02:27
New-Era
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 03:20
soccdoodcss
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 03:43
bmann_420
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 03:53
soccdoodcss
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 04:01
bmann_420
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 09:19
Shaman
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 12:13
New-Era
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 12:23
Tommy-Gun
This message has been deleted by GHW_Chronic.
Old 06-13-2008, 17:22
YamiKaitou
This message has been deleted by YamiKaitou. Reason: I would trash this whole thread if I could
Old 06-13-2008, 17:23
GHW_Chronic
This message has been deleted by GHW_Chronic. Reason: me too
sreddoMlabolG
BANNED
Join Date: Aug 2008
Location: +Karma If I helped you i
Old 10-01-2008 , 01:26   Re: New-Era's Unlimited Ammo v1.0.1 Updated !
Reply With Quote #33

Just read this over again and it makes me laugh hard.
sreddoMlabolG is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-03-2010 , 08:17   Re: New-Era's Unlimited Ammo v1.0.1 Updated !
Reply With Quote #34

Here's connor's version wich does compiles ;P

He just forgot a ')' at the end of a define.

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define NO_BULLET_WEAPONS_BITSUM ((1<<CSW_C4)|(1<<CSW_KNIFE)|(1<<CSW_HEGRENADE)|(1<<CSW_SMOKEGRENADE)|(1<<CSW_FLASHBANG))

new cvar_enable

public plugin_init() {
    register_plugin("New-Era_UnlimitedAmmo", "1.0.1", "New-Era Scripting Team")

    cvar_enable= register_cvar("ne_uammo_enable", "1")

    register_event("CurWeapon", "event_curweapon", "be", "1=1")
}

public event_curweapon(id) {
    if(!get_pcvar_num(cvar_enable))
        return
    
    new weaponID=read_data(2)
    
    if( !(NO_BULLET_WEAPONS_BITSUM & (1<<weaponID)) ) {
        cs_set_user_bpammo(id, weaponID, 255)
    }
}
BTW: Connor, i think you should post this plugin (above) in 'New Plugin Submissions', since the author is banned & you fixed it
__________________

Last edited by crazyeffect; 01-03-2010 at 08:21.
crazyeffect is offline
Send a message via MSN to crazyeffect
cln
New Member
Join Date: Mar 2010
Old 03-01-2010 , 20:04   Re: New-Era's Unlimited Ammo v1.0.1 Updated !
Reply With Quote #35

sry wrong thread

Last edited by cln; 03-01-2010 at 20:13.
cln is offline
xXxOpOpxXx
Senior Member
Join Date: Aug 2007
Old 03-28-2010 , 02:07   Re: New-Era's Unlimited Ammo v1.0.1 Updated !
Reply With Quote #36

nice:
Quote:
L 03/28/2010 - 017:18: [AMXX] Run time error 10 (plugin "unlimitedammo.amxx") (native "cs_get_user_bpammo") - debug not enabled!
L 03/28/2010 - 017:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
__________________
xXxOpOpxXx is offline
Send a message via Skype™ to xXxOpOpxXx
Old 06-02-2010, 18:20
SkielMafu
This message has been deleted by SkielMafu.
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 08-04-2015 , 11:34   Re: New-Era's Unlimited Ammo v1.0.1 Updated !
Reply With Quote #37

Nice :p
__________________








CrazY. is offline
ALPHATRAX
Junior Member
Join Date: May 2016
Old 11-06-2017 , 22:28   Re: New-Era's Unlimited Ammo v1.0.1 Updated !
Reply With Quote #38

Quote:
Originally Posted by crazyeffect View Post
Here's connor's version wich does compiles ;P

He just forgot a ')' at the end of a define.

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define NO_BULLET_WEAPONS_BITSUM ((1<<CSW_C4)|(1<<CSW_KNIFE)|(1<<CSW_HEGRENADE)|(1<<CSW_SMOKEGRENADE)|(1<<CSW_FLASHBANG))

new cvar_enable

public plugin_init() {
    register_plugin("New-Era_UnlimitedAmmo", "1.0.1", "New-Era Scripting Team")

    cvar_enable= register_cvar("ne_uammo_enable", "1")

    register_event("CurWeapon", "event_curweapon", "be", "1=1")
}

public event_curweapon(id) {
    if(!get_pcvar_num(cvar_enable))
        return
    
    new weaponID=read_data(2)
    
    if( !(NO_BULLET_WEAPONS_BITSUM & (1<<weaponID)) ) {
        cs_set_user_bpammo(id, weaponID, 255)
    }
}
BTW: Connor, i think you should post this plugin (above) in 'New Plugin Submissions', since the author is banned & you fixed it

Works like a charm thnx bro
ALPHATRAX is offline
Mohamed null
BANNED
Join Date: Sep 2020
Location: Algeria
Old 10-17-2020 , 11:19   Re: New-Era's Unlimited Ammo v1.0.1 Updated !
Reply With Quote #39

Can u make Infinite Ammo for vips online ?
Mohamed null is offline
josko
Member
Join Date: Dec 2008
Old 11-20-2020 , 12:26   Re: New-Era's Unlimited Ammo v1.0.1 Updated !
Reply With Quote #40

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>



// Temp lookup table (from csdm), will be in next sh version
new weapon_slot[] = {
	0,
	2,	//CSW_P228
	0,
	1,	//CSW_SCOUT
	4,	//CSW_HEGRENADE
	1,	//CSW_XM1014
	5,	//CSW_C4
	1,	//CSW_MAC10
	1,	//CSW_AUG
	4,	//CSW_SMOKEGRENADE
	2,	//CSW_ELITE
	2,	//CSW_FIVESEVEN
	1,	//CSW_UMP45
	1,	//CSW_SG550
	1,	//CSW_GALIL
	1,	//CSW_FAMAS
	2,	//CSW_USP
	2,	//CSW_GLOCK18
	1,	//CSW_AWP
	1,	//CSW_MP5NAVY
	1,	//CSW_M249
	1,	//CSW_M3
	1,	//CSW_M4A1
	1,	//CSW_TMP
	1,	//CSW_G3SG1
	4,	//CSW_FLASHBANG
	2,	//CSW_DEAGLE
	1,	//CSW_SG552
	1,	//CSW_AK47
	3,	//CSW_KNIFE
	1	//CSW_P90
}
// Temp Lookup table, will be in next sh version
new max_bp_ammo[] = {
        0,
        52,     //CSW_P228
        0,
        90,     //CSW_SCOUT
        1,      //CSW_HEGRENADE
        32,     //CSW_XM1014
        1,      //CSW_C4
        100,	//CSW_MAC10
        90,     //CSW_AUG
        1,      //CSW_SMOKEGRENADE
        120,	//CSW_ELITE
        100,	//CSW_FIVESEVEN
        100,	//CSW_UMP45
        90,     //CSW_SG550
        90,     //CSW_GALIL
        90,     //CSW_FAMAS
        100,	//CSW_USP
        120,	//CSW_GLOCK18
        30,     //CSW_AWP
        120,	//CSW_MP5NAVY
        200,	//CSW_M249
        32,     //CSW_M3
        90,     //CSW_M4A1
        120,	//CSW_TMP
        90,     //CSW_G3SG1
        2,      //CSW_FLASHBANG
        35,     //CSW_DEAGLE
        90,     //CSW_SG552
        90,     //CSW_AK47
        0,      //CSW_KNIFE
        100	    //CSW_P90
}
//---------------------------------------------------------------------------------------------------
public plugin_init()
{

    // Plugin Info
    register_plugin("UnlimitedAmmo", "1.0", "Vittu")

    // EVENTS
	register_event("CurWeapon", "event_curweapon", "be", "1=1")
}
//----------------------------------------------------------------------------------------------------
public event_curweapon(id)
{
    new clip, ammo, wpnid = get_user_weapon(id, clip, ammo)
	//new wpnid = read_data(2)

	new slot = weapon_slot[wpnid]

	// Make sure its a gun
	if ( slot == 1 || slot == 2 )
	{
		new maxBpAmmo = max_bp_ammo[wpnid]

		if ( cs_get_user_bpammo(id, wpnid) < maxBpAmmo )
			cs_set_user_bpammo(id, wpnid, maxBpAmmo)
	}
}
//-----------------------------------------------------------------------------------------------------

Here's a better Code I think. Ammo stays at the max values as they have by default, you just shoot and reload, truly unlimited ammo!

I think New-Eras plugin makes so you get 255 ammo on every gun? I don't like that if that is the case, then this code is much better, made by Vittu but for a Superhero mod hero called Inspector Tequila. I took the code from that and made this. Though I'll give all credit to Vittu since it's his code really.
josko is offline
Reply


Thread Tools
Display Modes

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 12:49.


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