AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   New-Style Unlimited Backpack Ammo(bpammo) (https://forums.alliedmods.net/showthread.php?t=301461)

Xiaobaibai 09-22-2017 03:36

New-Style Unlimited Backpack Ammo(bpammo)
 
1 Attachment(s)
[Purpose]
All the plugins that exist just functionally make players' bpammo unlimited, but there is still a bpammo number on the HUD.(like 30|90)
So here my remade plugin modifies the HUD with the same unlimited bpammo feature.
[Effect]
* Unlimited bpammo for all weapons(except grenade, c4, knife)
* Only clip ammo will be shown on the HUD
[Credits]
Some codes from Zombie Plague 5.0 by ZP Dev Team

Natsheh 09-22-2017 06:17

Re: New-Style Unlimited Backpack Ammo(bpammo)
 
Wrong section...

Post this in the zombie related stuff..

Xiaobaibai 09-22-2017 06:49

Re: New-Style Unlimited Backpack Ammo(bpammo)
 
Quote:

Originally Posted by Natsheh (Post 2550196)
Wrong section...

Post this in the zombie related stuff..

No need for zombie plugins...
This can be used in any gameplay

DevilBoy.eXe 09-22-2017 07:21

Re: New-Style Unlimited Backpack Ammo(bpammo)
 
Good job, useful plugin
One sugestion, add infinite ammo by flag so we can give infinite ammo to VIP, Owners etc

TheSpaniard 09-22-2017 08:24

Re: New-Style Unlimited Backpack Ammo(bpammo)
 
1 Attachment(s)
Quote:

Originally Posted by DevilBoy.eXe (Post 2550202)
Good job, useful plugin
One sugestion, add infinite ammo by flag so we can give infinite ammo to VIP, Owners etc

Here you go :-
Will give unlimited ammo only to player with admin_level_h flag

HamletEagle 09-22-2017 10:30

Re: New-Style Unlimited Backpack Ammo(bpammo)
 
Instead of listing all offsets and then using a constant you can just use const m_rgAmmo = 376 and const m_iPrimaryAmmoType = 49. Then do:
PHP Code:

set_pdata_int(idm_rgAmmo get_pdata_int(ActiveItemm_iPrimaryAmmoType4), ...) 

.
ActiveItem can be retrieved by using get_pdata_cbase and m_pActiveItem.


All times are GMT -4. The time now is 05:51.

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