Raised This Month: $ Target: $400
 0% 

amx_slay problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
yanke3
Junior Member
Join Date: Apr 2010
Old 03-03-2013 , 04:26   amx_slay problem
Reply With Quote #1

I have this plugin


PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "plugin_slay"
#define VERSION "1.0"
#define AUTHOR "YANKEE"


public plugin_init() {
   
register_plugin(PLUGINVERSIONAUTHOR)
   
register_concmd("amx_slay","cmdSlay",ADMIN_KICK"<nume> - il omori")
}

public 
cmdSlay(id,level,cid){
   if(!
cmd_access(id,level,cid,2)){
        
   return 
PLUGIN_HANDLED;
}   
   new 
arg[32],admin[32],name2[32];
  
  
   
read_argv arg 31 )
   
   new 
target cmd_target id arg )
   if(!
is_user_alive(id)){
   
console_print(id"[Bucov AMXX] %s nu este viu."target)

   return 
PLUGIN_HANDLED
}   
   
get_user_name(id,admin,31);
   
get_user_name(targetname231);
   
   
   
   
client_cmd(target,"kill")
   
log_amx("Slay: ^"%s^" amx_slay ^"%s^" "adminname2)

   
   
client_print(0print_chat"Admin %s: foloseste comanda amx_slay %s"adminname2)

   return 
PLUGIN_HANDLED

if an admin has immunity he still get slay
yanke3 is offline
 


Thread Tools
Display Modes

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 21:37.


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