Raised This Month: $59 Target: $400
 14% 

Knife Healing by Ven


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   GHW_Chronic (70)
spunko
Senior Member
Join Date: Jun 2005
Location: Ecuador
Old 05-20-2006 , 02:19   Knife Healing by Ven
Reply With Quote #1

ORIGINAL "Knife_Healig" BY VEN

I saw a similar plugin in a server (Genesis server) and I wanted it but I couldnīt find it anywhere, then I found this one in "Suggestions / Requests" that it was barely close to the one i wanted and started to edit the source to finally get this..

DESCRIPTION
This pluging has and advantage and a disadvantage, it heals you up to 75 HP, but you have to take out your knife and type /heal. If you change to another weapon you have to switch back to your knife and type /heal again.
When you are healing a sound is played and only players within a certain distance will be able to hear it, so you better keep runing, because if you hide somewhere the sound will reveal your position.

COMMANDS
- say /heal (/curar in spanish) to gain hp - you better bind this command Ex: bind "k" "say /heal" - to bind a key you must do it in your console
- say /healhelp - displays a motd window with all the help - multi-language support
- amx_knifeheal_addhealth - this cvar changes the amount of hp you will get every 4 secconds - default value "4"
- amx_knifeheal_maxhealth - this cvar sets the maximum hp you can get when healing - default value "75"

INSTALLATION
* Place "Knife_Healing.amxx" into "\cstrike\addons\amxmodx\plugins"
* Then put the text file into "\cstrike\addons\amxmodx\data\lang" - This file is needed for the plugin to show text, hud messages and the help motd.
* Go to "\cstrike\addons\amxmodx\configs" look for the file "plugins.ini" and add this line (without the quotes) "Knife_Healing.amxx"
* Save changes and restart your server.

MODULES REQUIRED
<fun>

Credits go to
"Genesis and his server (where I saw it)"
"Ramono" for giving the idea
"Ven" for making the very first plugin and found some errors
"ZeonSoldier" for optimizing code
"Hawk552" for optimizing code & helped with the motd
"spunko" edited the code, added some stuff


Code:
The .txt file goes into amxmodx/data/lang folder.
Attached Thumbnails
Click image for larger version

Name:	heal.jpg
Views:	9617
Size:	92.4 KB
ID:	8645  
Attached Files
File Type: sma Get Plugin or Get Source (Knife_Healing.sma - 5155 views - 8.1 KB)
File Type: txt knife_healing.txt (2.1 KB, 2754 views)

Last edited by spunko; 08-15-2006 at 17:19.
spunko is offline
Send a message via MSN to spunko
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-20-2006 , 02:27  
Reply With Quote #2

Nice idea, I can tell you will get more out of this plugin. +3 Karma.
Peli is offline
Send a message via MSN to Peli
spunko
Senior Member
Join Date: Jun 2005
Location: Ecuador
Old 05-20-2006 , 02:31  
Reply With Quote #3

thanx.. i hope you like it..

thanx for the karma too...
spunko is offline
Send a message via MSN to spunko
VEN
Veteran Member
Join Date: Jan 2005
Old 05-20-2006 , 02:43  
Reply With Quote #4

Code:
register_forward(FM_EmitSound, "EmitSound")
What is that for? :o
VEN is offline
spunko
Senior Member
Join Date: Jun 2005
Location: Ecuador
Old 05-20-2006 , 10:09  
Reply With Quote #5

useless, thanx for the observation..

*Updated (see the first post)

- Now with Multi-language support, Enlgish and Spanish at the moment
* I need help with more languages, any help will be apreciate it. Thanx a lot.
spunko is offline
Send a message via MSN to spunko
hitme
Senior Member
Join Date: May 2006
Old 05-20-2006 , 23:07   good
Reply With Quote #6

interesting.. will try it on my server see how it goes
__________________


+ Karma
hitme is offline
Send a message via AIM to hitme
spunko
Senior Member
Join Date: Jun 2005
Location: Ecuador
Old 05-21-2006 , 03:11  
Reply With Quote #7

*Updated (see the first post)

CHANGES V 1.0.1!!
- Help motd window - multi-language support by the command of: say /healhelp
- Print a message every 8 minutes with the help command
- Edited the language file (knife_healing.txt)
spunko is offline
Send a message via MSN to spunko
VEN
Veteran Member
Join Date: Jan 2005
Old 05-21-2006 , 04:54  
Reply With Quote #8

Quote:
MODULES REQUIRED
<amxmisc>
<fakemeta>
<fun>
amxmisc isn't a module
I have absolutely no idea why did you think that fakemeta is required here.
VEN is offline
spunko
Senior Member
Join Date: Jun 2005
Location: Ecuador
Old 05-21-2006 , 05:20  
Reply With Quote #9

Quote:
Originally Posted by VEN
amxmisc isn't a module
yep my bad.. it's an include, I forgot to delete that line when i copied that from the code..

Quote:
Originally Posted by VEN
I have absolutely no idea why did you think that fakemeta is required here.
I thought the pluging would need it to compile..

thanx for taking a look at the code..

*Edited
spunko is offline
Send a message via MSN to spunko
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-21-2006 , 16:21  
Reply With Quote #10

Spunko, easiest way to know what it needs to compile is add the bare minimum and if it doesn't compile, add 1 at a time. If not then, the plugin has errors.
Peli is offline
Send a message via MSN to Peli
Reply


Thread Tools
Display Modes

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


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