Raised This Month: $ Target: $400
 0% 

execute command on attacker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 05-18-2010 , 10:28   execute command on attacker
Reply With Quote #1

If hs is landed the server executes a command on the attacker who did the hs.How can it be done ? I know how to log hs event but not the other part.
SpeeDeeR is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-18-2010 , 19:55   Re: execute command on attacker
Reply With Quote #2

Look at amx_exec plugins.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-19-2010 , 05:53   Re: execute command on attacker
Reply With Quote #3

these:
Code:
client_cmd(attacker, "command")
engclient_cmd(attacker, "command")
?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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
Reply



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