Quote:
Originally Posted by G-Dog
what kind of bot? you can try RegisterHamFromEntity when the bot is put in server to fix your issue.
|
conor tried that still didnt work
czbots only bots i use
Untill some one can show me how they get czbots working i have to use this
PHP Code:
public Event_Damage( id )
{
new weapon, bodypart
new attacker = get_user_attacker( id, weapon, bodypart )
if ( !is_user_alive( id ) || !is_user_alive( attacker ) )
return PLUGIN_CONTINUE
if ( weapon == CSW_KNIFE )
{
if(cs_get_user_team(id) != cs_get_user_team(attacker))
{
user_silentkill( id )
fm_fakedamage(id,"weapon_knife", 2.0 ,DMG_SLASH);
make_deathmsg( attacker, id, 0, "knife" )
}
set_user_frags(attacker, get_user_frags(attacker)+1)
}
return PLUGIN_CONTINUE
}