Raised This Month: $ Target: $400
 0% 

Max Ammo In Clip?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-28-2005 , 21:59   Max Ammo In Clip?
Reply With Quote #1

Hey all

Just wondering how I would go about finding this out? How much is the maximum ammo in your clip? Should be easy, but i'm not quite sure how.

Thanx
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-28-2005 , 22:38  
Reply With Quote #2

I don't believe there's any AMXx native for returning the maximum ammo in a clip.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-28-2005 , 23:11  
Reply With Quote #3

ok... then would it be possible to somehow use client_prethink to get it? or is there a function called when you buy a weapon?
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
Kero_1116
Junior Member
Join Date: Apr 2005
Old 04-28-2005 , 23:21  
Reply With Quote #4

the unlimited ammo plugin gives a new weapon to the player everytime they are out of ammo
Kero_1116 is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-29-2005 , 13:03  
Reply With Quote #5

That is not what he wants. He wants a mod specific, indeed, gun specific ammo amount, which AMXX cannot give him.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-29-2005 , 16:25  
Reply With Quote #6

hmm, you guys seem to think it's impossible, but what about this?

Code:
//inside of client_prethink //oAmmo[34] already declared elsewhere new CurWeapon = read_data(1) new nAmmo = read_data(2) if(oAmmo[id] > nAmmo) //player fired if(oAmmo[id] < nAmmo) //player reloaded new MaxAmmo = nAmmo

something like that? I'm going to play around with it and see if I can get it to work.
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 04-30-2005 , 02:26  
Reply With Quote #7

(I'm assuming CS) Why don't you just check what weapon they have, then get the respective max ammo for it since each weapon has a defined max ammo.
__________________

My 3D Art: http://k-c-e.deviantart.com/

[img]http://img213.**************/img213/7132/userbar152416mp2.gif[/img]
[img]http://img65.**************/img65/5606/userbar152433ie5.gif[/img]
[img]http://img223.**************/img223/7576/userbar152440yk6.gif[/img]
KCE is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-30-2005 , 12:23  
Reply With Quote #8

Well, that's what I'm asking! How do I find the max ammo? Or do you just mean I should know it and define it myself (which I know almost all of them lol)
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 04-30-2005 , 13:51  
Reply With Quote #9

Quote:
Originally Posted by BioHazardousWaste
Well, that's what I'm asking! How do I find the max ammo? Or do you just mean I should know it and define it myself (which I know almost all of them lol)
Yeah, just define it yourself.
__________________

My 3D Art: http://k-c-e.deviantart.com/

[img]http://img213.**************/img213/7132/userbar152416mp2.gif[/img]
[img]http://img65.**************/img65/5606/userbar152433ie5.gif[/img]
[img]http://img223.**************/img223/7576/userbar152440yk6.gif[/img]
KCE is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-30-2005 , 16:30  
Reply With Quote #10

ok then, simple enough
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
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 00:18.


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