Raised This Month: $ Target: $400
 0% 

execute command on attacker


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 05-21-2010 , 09:53   Re: execute command on attacker
Reply With Quote #4

PHP Code:
public plugin_init() {
      
register_event"DeathMsg""eDeath""a" );
}
public 
eDeath() {
      new 
iKillerID read_data(1);
      new 
IsHeadshot read_data(3);
      
// also, read_data(2) for Victim and read_data(4) for weapon name
      
if(isHeadshot) {
            
client_cmd(iKillerID"command"
      }
      return 
PLUGIN_CONTINUE

__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!

Last edited by Brreaker; 05-21-2010 at 09:57.
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
 



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 03:56.


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