Unlimited BP ammo

Useless Stuffs, Spam ... etc
Post Reply
johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 3 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 23
Contact:

Unlimited BP ammo

#1

Post by johnnysins2000 » 3 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 77 times
ze_unlimited_bpammo.rar
(3.39 KiB) Downloaded 77 times
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1999
Joined: 3 Years Ago
Location: Egypt
Has thanked: 33 times
Been thanked: 111 times
Age: 22
Contact:

#2

Post by Raheem » 3 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.
Loading Raheem's signature, Please wait...
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests