Raised This Month: $120 Target: $400

HE suicide (double kill)? BUG?

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Junior Member
Join Date: Sep 2010
Old 04-03-2012 , 03:52   HE suicide (double kill)? BUG?
Reply With Quote #1

Hi, I've got a problem with my CSDM server (FFA)
When someone suicides with the help of a HE grenade, in the top right corner, it says he has double killed himself, even though he hasn't, happens everytime someone suicides with a HE grenade.

Here is my plugins.ini file.

; AMX Mod X plugins

; Admin Base - Always one has to be activated
;admin.amxx        ; admin base (required for any admin-related)
;admin_sql.amxx        ; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx        ; basic admin console commands
adminhelp.amxx        ; help command for admin console commands
adminslots.amxx        ; slot reservation
multilingual.amxx    ; Multi-Lingual management

; Menus
menufront.amxx        ; front-end for admin menus
cmdmenu.amxx        ; command menu (speech, settings)
plmenu.amxx        ; players menu (kick, ban, client cmds.)
;telemenu.amxx        ; teleport menu (Fun Module required!)
mapsmenu.amxx        ; maps menu (vote, changelevel)
pluginmenu.amxx        ; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx        ; console chat commands
antiflood.amxx        ; prevent clients from chat-flooding the server
scrollmsg.amxx        ; displays a scrolling message
imessage.amxx        ; displays information messages
adminvote.amxx        ; vote commands

; Map related
nextmap.amxx        ; displays next map in mapcycle
mapchooser.amxx    ; allows to vote for next map
timeleft.amxx        ; displays time left on map

; Configuration
pausecfg.amxx        ; allows to pause and unpause some plugins
statscfg.amxx        ; allows to manage stats plugins via menu and commands

; Counter-Strike
;restmenu.amxx        ; restrict weapons menu
statsx.amxx        ; stats on death or round end (CSX Module required!)
;miscstats.amxx        ; bunch of events announcement for Counter-Strike
;stats_logging.amxx    ; weapons stats logging (CSX Module required!)

; Enable to use AMX Mod plugins
;amxmod_compat.amxx    ; AMX Mod backwards compatibility layer

; Custom - Add 3rd party plugins here
I've also got CSDM and AMXBans installed.

What could be the problem? Please help as soon as possible, and sorry if I posted this in the wrong section, didn't know where to post it!

Thanks in advance!
xtheone is offline
Junior Member
Join Date: Sep 2010
Old 04-03-2012 , 04:12   Re: HE suicide (double kill)? BUG?
Reply With Quote #2

Hmm, it looks like blueflash.amxx is causing this.

This is the .sma file, could anyone look this through?

#include <amxmodx>
#include <fun>

#define PLUGIN_VERSION "1.0c"

#define MAX_PLAYERS    32 + 1

new health_add
new health_hs_add
new health_max

new nKiller
new nKiller_hp
new nHp_add
new nHp_max

new g_iScreenFade

new bool:g_bHasFade[MAX_PLAYERS]

public plugin_init()
    register_plugin("Vampire", PLUGIN_VERSION, "Shalfey")
    g_iScreenFade    = get_user_msgid("ScreenFade")
    new sFunction[]    = "cmdFade"
    register_clcmd("say /fade",        sFunction)
    register_clcmd("say_team /fade",    sFunction)
    health_add    = register_cvar("amx_vampire_hp", "0")
    health_hs_add    = register_cvar("amx_vampire_hp_hs", "0")
    health_max    = register_cvar("amx_vampire_max_hp", "100")
    register_event("DeathMsg", "hook_death", "a", "1>0")

public client_putinserver(id)
    g_bHasFade[id] = true

public hook_death()
    // Killer id
    nKiller = read_data(1)
    if ( (read_data(3) == 1) && (read_data(5) == 0) )
        nHp_add = get_pcvar_num (health_hs_add)
        nHp_add = get_pcvar_num (health_add)
    nHp_max = get_pcvar_num (health_max)
    // Updating Killer HP
    nKiller_hp = get_user_health(nKiller)
    nKiller_hp += nHp_add
    // Maximum HP check
    if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
    set_user_health(nKiller, nKiller_hp)
    // Screen fading
    if ( !g_bHasFade[nKiller] )
    message_begin(MSG_ONE_UNRELIABLE, g_iScreenFade, {0,0,0}, nKiller)

public cmdFade(id)
    g_bHasFade[id] = !g_bHasFade[id]
    client_print(id, print_chat, "Blueflash %s. To %s, type /fade.", g_bHasFade[id] ? "enabled" : "disabled", g_bHasFade[id] ? "disable" : "enable")

Last edited by xtheone; 04-03-2012 at 04:14.
xtheone is offline
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-03-2012 , 10:27   Re: HE suicide (double kill)? BUG?
Reply With Quote #3

Post in the correct forum, problem is not related with default amxx package.
I think you can fix it checking if killer is alive before trying to add him some health.
- tired and retired -
ConnorMcLeod is offline
Epic Member
Join Date: Oct 2010
Location: Finland
Old 04-07-2012 , 06:34   Re: HE suicide (double kill)? BUG?
Reply With Quote #4

I have seen this in 2 another server, and both of those didnt use those plugins.
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline

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 17:53.

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