Raised This Month: $91 Target: $400
 22% 

Solved Kill Log that shows on console for CS 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NOTORIOUS7302
Junior Member
Join Date: Nov 2018
Location: Anonymous
Old 12-25-2018 , 17:37   Kill Log that shows on console for CS 1.6
Reply With Quote #1

I just want my server to look special so I just want someone to make a kill log similar to the one shown in this video: https://www.youtube.com/watch?v=vn6d9mtc14U

Last edited by NOTORIOUS7302; 09-05-2019 at 22:09.
NOTORIOUS7302 is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 12-26-2018 , 10:17   Re: Kill Log that shows on console for CS 1.6
Reply With Quote #2

PHP Code:
public client_death(killer,victim,wpnindex,hitplace,TK)
{
    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!",KillNameVicNamewpnindex)

__________________

Last edited by iceeedr; 12-26-2018 at 10:17.
iceeedr is offline
Send a message via Skype™ to iceeedr
NOTORIOUS7302
Junior Member
Join Date: Nov 2018
Location: Anonymous
Old 12-26-2018 , 17:38   Re: Kill Log that shows on console for CS 1.6
Reply With Quote #3

So I just paste that to console or what?
NOTORIOUS7302 is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 12-26-2018 , 19:34   Re: Kill Log that shows on console for CS 1.6
Reply With Quote #4

Sorry, I just posted the function, it's there, just compile.

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("Killer's name""0.1""alliedmodders")
}

public 
client_death(killer,victim,wpnindex,hitplace,TK)
{
    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!",KillNameVicNamewpnindex)

__________________
iceeedr is offline
Send a message via Skype™ to iceeedr
NOTORIOUS7302
Junior Member
Join Date: Nov 2018
Location: Anonymous
Old 12-27-2018 , 17:27   Re: Kill Log that shows on console for CS 1.6
Reply With Quote #5

So that's .sma I guess? Also, it doesn't work because on wpnindex, it only says !

Last edited by NOTORIOUS7302; 12-27-2018 at 17:30.
NOTORIOUS7302 is offline
NOTORIOUS7302
Junior Member
Join Date: Nov 2018
Location: Anonymous
Old 09-03-2019 , 20:27   Re: Kill Log that shows on console for CS 1.6
Reply With Quote #6

Quote:
Originally Posted by iceeedr View Post
Sorry, I just posted the function, it's there, just compile.

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("Killer's name""0.1""alliedmodders")
}

public 
client_death(killer,victim,wpnindex,hitplace,TK)
{
    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!",KillNameVicNamewpnindex)


Unfortunately, this hasn't been answered in almost a year. The problem is that it says that the "killer" killed "victim" but doesn't show the name or model of the weapon that was used.
NOTORIOUS7302 is offline
NOTORIOUS7302
Junior Member
Join Date: Nov 2018
Location: Anonymous
Old 09-03-2019 , 20:33   Re: Kill Log that shows on console for CS 1.6
Reply With Quote #7

Proof

https://prnt.sc/p1gaa1

Last edited by NOTORIOUS7302; 09-03-2019 at 20:34.
NOTORIOUS7302 is offline
Old 09-03-2019, 20:33
NOTORIOUS7302
This message has been deleted by NOTORIOUS7302.
AmXDusT
Member
Join Date: Feb 2019
Location: Italy / Albania
Old 09-03-2019 , 20:35   Re: Kill Log that shows on console for CS 1.6
Reply With Quote #8

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


Last edited by AmXDusT; 09-03-2019 at 20:55. Reason: used deathmsg instead of client_death
AmXDusT is offline
NOTORIOUS7302
Junior Member
Join Date: Nov 2018
Location: Anonymous
Old 09-05-2019 , 22: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
NOTORIOUS7302
Junior Member
Join Date: Nov 2018
Location: Anonymous
Old 09-05-2019 , 22:09   Re: Kill Log that shows on console for CS 1.6
Reply With Quote #10

Thank you! The Kill Log works perfectly!
NOTORIOUS7302 is offline
Reply


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 20:45.


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