Raised This Month: $32 Target: $400
 8% 

ammo for hp


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   GHW_Chronic (70)
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 03-04-2006 , 06:40   ammo for hp
Reply With Quote #1

This plugin allows you to say /ammo and gain 1 ammo clip, in exchange losing X HP.

This comes in handy for those who love to wallbang.

Tested on CS 1.6

Credits:
- Kraugh

CVARs:
amxx_ammoforhp <1/0> - enable/disable plugin (default: 1)
amx_cvar mp_ammocost <1-99> - changes the amout of HP you loose for gaining the ammo (default: 10)

Modules:
fun
cstrike
Attached Files
File Type: sma Get Plugin or Get Source (ammoforhp.sma - 2920 views - 3.3 KB)

Last edited by GHW_Chronic; 08-08-2006 at 23:52.
wouter is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-04-2006 , 09:54  
Reply With Quote #2

Don't post the .amxx

Also, it's better to use decent grammar and sentence structure when posting a plugin.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 03-04-2006 , 09:57  
Reply With Quote #3

delited the amxx, but the second will be harder
wouter is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-04-2006 , 10:05  
Reply With Quote #4

Quote:
Originally Posted by wouter
delited the amxx, but the second will be harder
I never thought I'd be writing a paragraph for someone here.

Quote:
Originally Posted by Me
This plugin allows you to say /ammo and gain 1 ammo clip, in exchange losing 10 HP.

You can change the HP cost by going into the .sma file and changing this line:
Code:
new ammoCost = 10

To something higher or lower, then recompiling it.

This comes in handy for those who love to wallbang.

Tested on CS 1.6,

Credits:
- Kraugh

Configuration:
- CVAR: amxx_ammoforhp <1/0>
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-04-2006 , 10:08  
Reply With Quote #5

Add a cvar for the ammo cost ( HP ). Hardcoded stuff is nasty
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 03-04-2006 , 10:36  
Reply With Quote #6

i would suggest to not use /ammo but something else
/ammo sounds as if it is about to print amount of ammo or a menu for ammo ( eg: new ammunition types )

so better use /hpforammo or /ammohp or what ever
or at leaset add a menu or something to make sure people realy want it
__________________
alias White Panther
karlos is offline
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 03-04-2006 , 12:44  
Reply With Quote #7

Quote:
Originally Posted by karlos
i would suggest to not use /ammo but something else
/ammo sounds as if it is about to print amount of ammo or a menu for ammo ( eg: new ammunition types )

so better use /hpforammo or /ammohp or what ever
or at leaset add a menu or something to make sure people realy want it
but that is so long, /hpforammo, nobody use this in a real sentence: /ammo
wouter is offline
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 03-04-2006 , 16:59  
Reply With Quote #8

Quote:
Originally Posted by v3x
Add a cvar for the ammo cost ( HP ). Hardcoded stuff is nasty
done
wouter is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 03-04-2006 , 17:00  
Reply With Quote #9

Explain what these do ;)

Quote:
- CVAR: amxx_ammoforhp <1/0>
- CVAR: amx_cvar mp_ammocost <1-99>
Jordan is offline
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 03-04-2006 , 17:14  
Reply With Quote #10

done
wouter 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 23:41.


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