Raised This Month: $ Target: $400
 0% 

VS Limbshot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Afion
Junior Member
Join Date: Apr 2007
Location: Belgium
Old 04-16-2007 , 20:02   Re: VS Limbshot
Reply With Quote #7

i changed the code to this:
PHP Code:
 if ((get_team(victim) == 2) && (get_team(attacker) == 1) && is_user_alive(victim)) //Vamp attacks slayer and slayer still lives
  

  
set_user_frags(attackerget_user_frags(attacker)+1)
 
  
set_msg_block(get_user_msgid("DeathMsg"), BLOCK_ONCE)
  
user_kill(victim)
  
set_user_frags(victimget_user_frags(victim)+1)
 
  
make_deathMsg(attacker,victim,"claw")
 
  
console_print(0"%s limbed %s"attackernamevictimname)
  }
 return 
PLUGIN_HANDLED 
It does the same, but solves the silentkill problem and only leaves the set_user_frags problem.

Are you saying that i have to hook the ScoreInfo message and create my own, like i did with the DeathMsg? Or is there a way to only refresh the frags? Im trying to figure out the ScoreInfo with the register_message command but i have no idea if that is the right way or if that even works...
Afion 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 06:46.


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