Raised This Month: $60 Target: $400
 15% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   GHW_Chronic (70)
New-Era
BANNED
Join Date: Apr 2008
Old 06-10-2008 , 23:05   New-Era's Unlimited Ammo v1.0.1 Updated !
Reply With Quote #1

v1.0.1 updated ! (pcvars)

Hello.


This plugin for cs 1.6 gives all players unlimited ammo with reload.
What more can I say?


Installation :
Put "addons\amxmodx\plugins\ne_unlimitedammo.amxx " to "addons\amxmodx\plugins\" in your server.
Then put "ne_unlimitedammo.amxx" without the quotes in the bottom of your plugins.ini file in the addons/amxmodx/configs folder.


Cvars :
ne_uammo_enable
Default: "1"
Enables and disables the plugin.

Any suggestions let me know.
Attached Files
File Type: sma Get Plugin or Get Source (ne_unlimitedammo.sma - 30012 views - 1.7 KB)

Last edited by New-Era; 08-03-2008 at 03:25. Reason: extinguishing another flame
New-Era is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 06-10-2008 , 23:19   Re: Team New-Era's Unlimited Ammo v1.0.0
Reply With Quote #2

v3x's plugin is better.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 06-10-2008 , 23:22   Re: Team New-Era's Unlimited Ammo v1.0.0
Reply With Quote #3

Wow! You tested it so fast!
__________________
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
New-Era
BANNED
Join Date: Apr 2008
Old 06-10-2008 , 23:25   Re: Team New-Era's Unlimited Ammo v1.0.0
Reply With Quote #4

Sorry , But isn't v3x's plugin set so only admins can give it to a player?
New-Era is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 06-11-2008 , 06:28   Re: Team New-Era's Unlimited Ammo v1.0.0
Reply With Quote #5

You have to use pcvars to get your plugin approved
PHP Code:
#define NE_UA_VERSION "1.0.0"

/*
    New-Era_UnlimitedAmmo by New-Era Scripting Team members:
        Alican Çubukçuoğlu (AKA AlicanC and Shaman)Xoxo Sneaky
    
    You can reach us from Steam Community group "#n.E Scripting Team"
*/
#include <amxmodx>
#include <amxmisc>

#include <cstrike>
#include <fakemeta>

#define find_ent_by_class(%1,%2) engfunc(EngFunc_FindEntityByString, %1, "classname", %2)

new ne_uammo_enable
new CSW_MAXAMMO[33]=
{
    -
2,
    
52,
    
0,
    
90,
    
1,
    
32,
    
1,
    
100,
    
90,
    
1,
    
120,
    
100,
    
100,
    
90,
    
90,
    
90,
    
100,
    
120,
    
30,
    
120,
    
200,
    
32,
    
90,
    
120,
    
90,
    
2,
    
35,
    
90,
    
90,
    
0,
    
100,
    -
1,
    -
1
}

public 
plugin_init()
{
    
register_plugin("New-Era_UnlimitedAmmo"NE_UA_VERSION"New-Era Scripting Team")
    
register_cvar("ne_uammo_version"NE_UA_VERSIONFCVAR_SPONLY)

    
ne_uammo_enable        =    register_cvar("ne_uammo_enable""1")

    
register_event("CurWeapon""event_curweapon""be""1=1")
    
register_clcmd("ne_uammo""command_ne_uammo"_"Dispays information about New-Era_UnlimitedAmmo")
}

public 
event_curweapon(id)
{
    if(!
get_pcvar_num(ne_uammo_enable) || !is_user_alive(id))
        return 
0

    
new weaponID read_data(2)
    if(
weaponID == CSW_C4 || weaponID == CSW_KNIFE || weaponID == CSW_HEGRENADE || weaponID == CSW_SMOKEGRENADE || weaponID == CSW_FLASHBANG)
        return 
PLUGIN_CONTINUE;
    
    
cs_set_user_bpammo(idweaponIDCSW_MAXAMMO[weaponID])
    
    return 
0
}

public 
command_ne_uammo(idlevelclientId)
{
    
client_print(idprint_console" ")
    
client_print(idprint_console"+-----|  About New-Era_UnlimitedAmmo  |-----+")
    
client_print(idprint_console"| ")
    
client_print(idprint_console"| New-Era_UnlimitedAmmo %s"NE_UA_VERSION)
    
client_print(idprint_console"| ")
    
client_print(idprint_console"| Coded by New-Era Scripting Team members:")
    
client_print(idprint_console"|     Alican Cubukcuoglu (AKA AlicanC and Shaman)")
    
client_print(idprint_console"| ")
    
client_print(idprint_console"| You can reach us from Steam Community group ^"#n.E Scripting Team^"")
    
client_print(idprint_console"| ")
    
client_print(idprint_console"+-----+")
    
client_print(idprint_console" ")
    
    return 
1

__________________

Last edited by atomen; 06-11-2008 at 13:57.
atomen is offline
Send a message via MSN to atomen
New-Era
BANNED
Join Date: Apr 2008
Old 06-11-2008 , 13:01   Re: Team New-Era's Unlimited Ammo v1.0.0
Reply With Quote #6

It says "use pcvars where optimization is important" and in our case optimization isn't much important. We can add it in next version though.
New-Era is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 06-11-2008 , 13:15   Re: Team New-Era's Unlimited Ammo v1.0.0
Reply With Quote #7

Not going to lie, I enjoy the chat message. However I suggest checking if the player already has the maximum amount of ammunition before giving him more. And I strongly suggest the use of pcvars. Maybe it isn't a large optimization but when you have multiple plugins running, the slightest bit could make a difference, even if it is tiny.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."

Last edited by soccdoodcss; 06-11-2008 at 13:18.
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Old 06-11-2008, 13:53
New-Era
This message has been deleted by GHW_Chronic.
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-11-2008 , 13:55   Re: Team New-Era's Unlimited Ammo v1.0.0
Reply With Quote #8

Quote:
Originally Posted by New-Era View Post
It says "use pcvars where optimization is important" and in our case optimization isn't much important. We can add it in next version though.
Approval will NOT be granted if you do not use pcvars. *et_pcvar_* is much faster than using *et_cvar_*


Also, what is the point of the ne_uammo_version command?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
New-Era
BANNED
Join Date: Apr 2008
Old 06-11-2008 , 14:06   Re: Team New-Era's Unlimited Ammo v1.0.0
Reply With Quote #9

Uhh yami wow ........ "ne_uammo_version" is not a command , thank you .....
Same goes for you yami ....... read the post above socc's ...... Then you can talk to me ...... RTFMP !!!!
New-Era is offline
Old 06-11-2008, 14:14
atomen
This message has been deleted by atomen.
New-Era
BANNED
Join Date: Apr 2008
Old 06-11-2008 , 14:41   Re: Team New-Era's Unlimited Ammo v1.0.0
Reply With Quote #10

You know that idc? He should RTFMP? Not my fault.

http://forums.alliedmods.net/showthread.php?t=21956

Read GHW's post ...
New-Era 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 22:52.


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