Raised This Month: $ Target: $400
 0% 

Hooking bots hurt


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 10-24-2009 , 22:04   Re: Hooking bots hurt
Reply With Quote #9

Quote:
Originally Posted by G-Dog View Post
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_Damageid )
{
 new 
weaponbodypart
 
new attacker get_user_attackeridweaponbodypart )
 
 if ( !
is_user_aliveid ) || !is_user_aliveattacker ) )
  return 
PLUGIN_CONTINUE
 
 
if ( weapon == CSW_KNIFE )
 {   
  if(
cs_get_user_team(id) != cs_get_user_team(attacker))
  {
   
user_silentkillid )
   
fm_fakedamage(id,"weapon_knife"2.0 ,DMG_SLASH);
   
make_deathmsgattackerid0"knife" )
  }
  
set_user_frags(attackerget_user_frags(attacker)+1)
 }
 
 return 
PLUGIN_CONTINUE


Last edited by Doc-Holiday; 10-24-2009 at 22:12.
Doc-Holiday is offline
 



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 17:42.


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