|
if(equal(classname, "grenade") && equal(model, "")
&& entity_get_int(ent, EV_INT_spawnflags) == 1 && entity_get_int(ent, EV_INT_effects) == 128)
{
message_begin(MSG_BROADCAST, 83, {0,0,0}, 0)
write_byte(planter)
write_byte(id)
write_byte(0)
write_string("c4")
message_end()
new kname[32], kteam[10], kauthid[32]
get_user_name(planter, kname, 31)
get_user_team(planter, kteam, 9)
get_user_authid(planter, kauthid, 31)
new vname[32], vteam[10], vauthid[32]
get_user_name(id, vname, 31)
get_user_team(id, vteam, 9)
get_user_authid(id, vauthid, 31)
log_message("^"%s<%d><%s><%s>^" killed ^"%s<%d><%s><%s>^" with ^"%s^"",
kname, get_user_userid(planter), kauthid, kteam,
vname, get_user_userid(id), vauthid, vteam, "c4")
new frags = get_user_frags(planter) + 1
entity_set_float(planter, EV_FL_frags, float(frags))
message_begin(MSG_ALL, 85)
write_byte(planter)
write_short(frags)
write_short(get_user_deaths(planter))
write_short(0)
write_short(get_user_team(planter))
message_end()
}
|
|