|
Member
Join Date: Nov 2018
Location: Anonymous
|
09-05-2019
, 21:03
Re: Kill Log that shows on console for CS 1.6
|
#9
|
Quote:
Originally Posted by AmXDusT
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(4, weaponName, charsmax(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!",KillName, VicName, weaponName)
}
|
thanks I'll see if it works!
|
|
|
|