Raised This Month: $ Target: $400
 0% 

[ZR] Unlimited ammo plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 10-31-2009 , 18:58   [ZR] Unlimited ammo plugin
Reply With Quote #1

A little plugin that will reset to 200 bullets every fifth second. Players won't need to reload.

Update 2010.05.19 - Version 2.1
Memory leak and ent issue fix by Kyle12 and Darkthrone.
Attached Files
File Type: sp Get Plugin or Get Source (zr_ammo.sp - 19646 views - 2.1 KB)
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)

Last edited by rhelgeby; 05-19-2010 at 08:59.
rhelgeby is offline
Send a message via MSN to rhelgeby
erasus
Junior Member
Join Date: Oct 2009
Old 11-19-2009 , 16:40   Re: [ZR] Unlimited ammo plugin
Reply With Quote #2

Thank you !
erasus is offline
Xoleum
Member
Join Date: Jul 2005
Old 11-28-2009 , 18:09   Re: [ZR] Unlimited ammo plugin
Reply With Quote #3

Hey rhelgeby,

For some reason, some players after joining do not receive the unlimited ammo. I have heard this issue from several people, what I found to be a temporary solution is re-joining the server.

Other than that! It's a great plugin!

Edit: Just an update.

I have experienced this issue myself now. It does not provide unlimited ammo on some occasions. Retrying the server does not fix it, the only way is disconnecting and connecting back.

Last edited by Xoleum; 11-29-2009 at 15:32.
Xoleum is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 11-30-2009 , 02:39   Re: [ZR] Unlimited ammo plugin
Reply With Quote #4

Not entirely sure on this (I don't do SM scripting at all) but shouldn't
Code:
for (new client = 1; client < MaxClients; client++)
be
Code:
for (new client = 1; client <= MaxClients; client++)
I think that whoever gets the player index '1' won't get counted otherwise.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 11-30-2009 , 03:31   Re: [ZR] Unlimited ammo plugin
Reply With Quote #5

Fixed.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Xoleum
Member
Join Date: Jul 2005
Old 11-30-2009 , 09:37   Re: [ZR] Unlimited ammo plugin
Reply With Quote #6

Was that what caused the bug or does it apply on something else?
Xoleum is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 11-30-2009 , 18:38   Re: [ZR] Unlimited ammo plugin
Reply With Quote #7

Xoleum that won't fix your problem. By the way DarkGod, your correction is true. But, the original would have skipped index '64' not '1'.

Thanks for reporting that.
__________________
Greyscale is offline
Xoleum
Member
Join Date: Jul 2005
Old 12-21-2009 , 20:13   Re: [ZR] Unlimited ammo plugin
Reply With Quote #8

Could it be possible for you guys to make a plugin that refills your clips, but not your actual ammo, so that you have to reload but you never ran out of bullets to use?
Xoleum is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 12-21-2009 , 20:41   Re: [ZR] Unlimited ammo plugin
Reply With Quote #9

I plan to work on ammo control for the next release.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Darkthrone
Senior Member
Join Date: Jun 2009
Old 01-29-2010 , 14:05   Re: [ZR] Unlimited ammo plugin
Reply With Quote #10

found errors in logs

L 01/29/2010 - 22:51:49: [SM] Native "SetEntData" reported: Entity -1 (-1) is invalid
L 01/29/2010 - 22:51:49: [SM] Displaying call stack trace for plugin "zr_ammo.smx":
L 01/29/2010 - 22:51:49: [SM] [0] Line 59, /home/groups/alliedmodders/forums/files/4/3/4/4/8/54328.attach::Client_ResetAmmo()
L 01/29/2010 - 22:51:49: [SM] [1] Line 50, /home/groups/alliedmodders/forums/files/4/3/4/4/8/54328.attach::ResetAmmo()
Darkthrone is offline
Reply



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 17:16.


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