AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Knife Healing by Ven (https://forums.alliedmods.net/showthread.php?t=28663)

spunko 05-20-2006 01:19

Knife Healing by Ven
 
3 Attachment(s)
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.

Peli 05-20-2006 01:27

Nice idea, I can tell you will get more out of this plugin. +3 Karma.

spunko 05-20-2006 01:31

thanx.. i hope you like it..

thanx for the karma too... :D

VEN 05-20-2006 01:43

Code:
register_forward(FM_EmitSound, "EmitSound")
What is that for? :o

spunko 05-20-2006 09:09

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.

hitme 05-20-2006 22:07

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

spunko 05-21-2006 02:11

*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)

VEN 05-21-2006 03:54

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.

spunko 05-21-2006 04:20

Quote:

Originally Posted by VEN
amxmisc isn't a module

:shock: 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.

:oops: :oops: I thought the pluging would need it to compile..

thanx for taking a look at the code..

*Edited :D

Peli 05-21-2006 15:21

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. :)


All times are GMT -4. The time now is 17:04.

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