Unlimited BP ammo

Useless Stuffs, Spam ... etc
Post Reply
johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

Unlimited BP ammo

#1

Post by johnnysins2000 » 7 years ago

Unlimited BP Ammo

Description:
  • This Plugin will allow You to Have unlimited BP Ammo for Guns.Just Like Zp has it optional U can now also keep it.
    BP ammo is something like this for example ak 47 has 30|90 which means it has 30 bullets or clips and 90 Bp Ammo.So this 90 BP ammo will remain 90 even after reloading the Gun.I Hope u Understand
This is The Code:-

Code: Select all

#include <zombie_escape>
#include <cstrike>  

/*--------------+
|    Globals    |
+--------------*/
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}
new cvar_enable

/*----------------------------+
|    Plugin Initialization    |
+----------------------------*/
public plugin_init()
{
	/*--------------------------+
	|    Plugin Registration    |
	+--------------------------*/
	register_plugin("New-Era_UnlimitedAmmo", NE_UA_VERSION, "New-Era Scripting Team")
	register_cvar("ne_uammo_version", NE_UA_VERSION, FCVAR_SPONLY)
	
	/*------------+
	|    CVars    |
	+------------*/
	cvar_enable= register_cvar("ze_uammo_enable", "1")
	
	/*-------------+
	|    Events    |
	+-------------*/
	register_event("CurWeapon", "event_curweapon", "be", "1=1")
	
	/*---------------+
	|    Commands    |
	+---------------*/
}

public event_curweapon(id)
{
	//Check if the plugin is enabled and player is alive
	if(!get_pcvar_num(cvar_enable) || !is_user_alive(id))
		return PLUGIN_CONTINUE;
	
	//Get and check weapon ID
	new weaponID= read_data(2)
	if(weaponID==CSW_C4 || weaponID==CSW_KNIFE || weaponID==CSW_HEGRENADE || weaponID==CSW_SMOKEGRENADE || weaponID==CSW_FLASHBANG)
		return PLUGIN_CONTINUE;
	
	if(cs_get_user_bpammo(id, weaponID)!=CSW_MAXAMMO[weaponID])
		cs_set_user_bpammo(id, weaponID, CSW_MAXAMMO[weaponID])
	
	return PLUGIN_CONTINUE;
}

Installation & Instructions:
  • Simply install it like any plugin.

Downloads:
Attachments
ze_unlimited_bpammo.rar
(3.39 KiB) Downloaded 467 times
ze_unlimited_bpammo.rar
(3.39 KiB) Downloaded 467 times
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#2

Post by Raheem » 7 years ago

Bro, You don't read this before posting your plugin here. You are allow to post plugins that you are the Author of it only. Also this not so important as you can change the BP ammo from our Weapons menu plugin to make it like 9999999999.

So i'll trash this thread.
He who fails to plan is planning to fail

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 2 guests