Raised This Month: $ Target: $400
 0% 

block logging of "suicide"?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-04-2004 , 18:02  
Reply With Quote #5

Quote:
Originally Posted by BAILOPAN
You can try that, if it doesn't work, post ;]
not working
PlayerXY commited suicide with "world" still appears in the logs
whenever that specific user_kill is used.

here's the whole thing:

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <engine> #include <dodfun> #include <dodx> new garandDeathMsg new blockSuicide = 0 public plugin_init() {    register_plugin("DoD UberGarand","0.95alpha","[RST] FireStorm")    register_statsfwd(XMF_DAMAGE)    register_cvar("amx_ubergarand","0")    set_cvar_num("amx_ubergarand",0)    register_concmd("amx_setubergarand","admin_setubergarand",ADMIN_BAN,"<enable/disable UberGarand Mode>") } public plugin_modules() {    require_module("engine")    require_module("fun")    require_module("dodx")    require_module("dodfun") } public client_damage(attacker,victim,damage,wpnindex,hitplace,TA){    if(get_cvar_num("amx_ubergarand") == 1){         if((wpnindex == DODW_GARAND) && (is_user_alive(victim) == 1)){                 garandDeathMsg = get_user_msgid("DeathMsg")                 set_msg_block(garandDeathMsg,BLOCK_ONCE)                 blockSuicide = 1                 user_kill(victim)                 if(TA == 0){                        new aKills = dod_get_user_kills(attacker)                        dod_set_user_kills(attacker,aKills+1)                 }                 message_begin( MSG_ALL, get_user_msgid("DeathMsg"),{0,0,0},0)         write_byte(attacker)         write_byte(victim)         write_byte(wpnindex)         message_end()                 }    } } public plugin_log() {    if (blockSuicide)    {       blockSuicide = 0       return PLUGIN_HANDLED    }    return PLUGIN_CONTINUE } public admin_setubergarand(id,level,cid){     if (!cmd_access(id,level,cid,2))         return PLUGIN_HANDLED     new ugm_s[2]     read_argv(1,ugm_s,2)     new ugm = str_to_num(ugm_s)     if(ugm == 1) {                if (get_cvar_num("amx_ubergarand") == 1){                      client_print(id,print_chat,"[AMXX] UberGarand Mode is already running.....")                      }                else if (get_cvar_num("amx_ubergarand") == 0){                     set_cvar_num("amx_ubergarand",1)                     }                }     else if(ugm == 0) {                if (get_cvar_num("amx_ubergarand") == 0){                      client_print(id,print_chat,"[AMXX] UberGarand Mode is already disabled.....")                      }                else if (get_cvar_num("amx_ubergarand") == 1){                     set_cvar_num("amx_ubergarand",0)                         }     }     return PLUGIN_HANDLED }
FeuerSturm is offline
 



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


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