View Single Post
NOTORIOUS7302
Member
Join Date: Nov 2018
Location: Anonymous
Old 09-05-2019 , 21:03   Re: Kill Log that shows on console for CS 1.6
Reply With Quote #9

Quote:
Originally Posted by AmXDusT View Post
PHP Code:
#include <amxmodx> 

public plugin_init() 

    
register_plugin("Killer's name""0.1""alliedmodders"
    
register_event("DeathMsg""ev_DeathMsg""a""2>0")


public 
ev_DeathMsg() 

    new 
killer read_data(1)
    new 
victim read_data(2)
    if(
killer == victim || !killer || !victim) return
    new 
weaponName[15]
    
read_data(4weaponNamecharsmax(weaponName))
    new 
KillName[32], VicName[32]
    
get_user_name(killer,KillName,charsmax(KillName)) 
    
get_user_name(victim,VicName,charsmax(VicName)) 
    
client_print(0,print_chat,"%s killed %s with %s!",KillNameVicNameweaponName

thanks I'll see if it works!
NOTORIOUS7302 is offline