AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   execute command on attacker (https://forums.alliedmods.net/showthread.php?t=127207)

SpeeDeeR 05-18-2010 10:28

execute command on attacker
 
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.

Exolent[jNr] 05-18-2010 19:55

Re: execute command on attacker
 
Look at amx_exec plugins.

drekes 05-19-2010 05:53

Re: execute command on attacker
 
these:
Code:

client_cmd(attacker, "command")
engclient_cmd(attacker, "command")

?

Brreaker 05-21-2010 09:53

Re: execute command on attacker
 
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




All times are GMT -4. The time now is 03:56.

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