AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Health Kill - v1.1 [9/17/09] (https://forums.alliedmods.net/showthread.php?t=103926)

BOYSplayCS 09-17-2009 17:28

Health Kill - v1.1 [9/17/09]
 
1 Attachment(s)
Health Kill v1.1


description
With each kill a player makes he is awarded a controllable amount of HP.

cvars
amx_hk_health <#> - Amount of HP received for one kill.
Default: 5

amx_hk_sound <#> - Whether or not to play the sound when a kill is made.
Default: 1

amx_hk_hud <#> - Whether or not to display the hud message for a kill.
Default: 1

changelog

  • Version 1.0
    • Initial Release
  • Version 1.1
    • Added cvar for hud message display
    • Changed return PLUGIN_HANDLED; with return PLUGIN_CONTINUE;
    • Changed SyncHudMsg() to show_hudmessage()

credits
  • My Shower - Thought of the idea while in it.

Raddish 09-17-2009 17:32

Re: Health Kill - v1.0 [9/17/09]
 
First!, GJ Nice plugin ;) +K

alan_el_more 09-17-2009 17:38

Re: Health Kill - v1.0 [9/17/09]
 
Another simple plugin by BOYSplayCS -.-

Arkshine 09-17-2009 17:39

Re: Health Kill - v1.0 [9/17/09]
 
You never learn.

- Retrieve data after the checks
- if ((iKiller = iVictim)) <= it's not a check if victim is the same as killer. It should be == and without ().
- PLUGIN_HANDLED for what ? It does nothing. Return nothing or CONTINUE.
- Sync hud for what ?!

BOYSplayCS 09-17-2009 17:48

Re: Health Kill - v1.1 [9/17/09]
 
Wrong, I do learn.

- I already added this before your post
- It was never '=', it was always '=='
- Simple mistake, I meant CONTINUE
- I was just testing to see what the difference was, don't have a heart attack

Updated.

Arkshine 09-17-2009 17:51

Re: Health Kill - v1.1 [9/17/09]
 
Try to compile your plugin before posting.

"if (iKiller = iVictim)" Again, it should be == not =.

BOYSplayCS 09-17-2009 17:53

Re: Health Kill - v1.1 [9/17/09]
 
Oh, lol.

I uploaded the wrong version, let me fix that real quick.

Arkshine 09-17-2009 18:10

Re: Health Kill - v1.1 [9/17/09]
 
- You still return HANDLED at the end..
- Make sure that the killer is a player 1 <= killer <= max_clients or is_user_alive()

xPaw 09-18-2009 00:30

Re: Health Kill - v1.1 [9/17/09]
 
amx_hk_health -50, awesome.

crazyeffect 09-18-2009 05:06

Re: Health Kill - v1.1 [9/17/09]
 
I wonder this plugin will be unapproved :/


All times are GMT -4. The time now is 00:13.

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