Raised This Month: $ Target: $400
 0% 

can anyone make amx_exec , amx_execall plugin?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 05-22-2012 , 16:51   Re: can anyone make amx_exec , amx_execall plugin?
Reply With Quote #7

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

#define PLUGIN "Exec"
#define VERSION "1.0"
#define AUTHOR "samer 123"

new  target[32],command[132],a_command[132],Uid;
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_concmd("amx_exec","cmdExec",ADMIN_CVAR,"Usage: amx_exec <nick> ^"command^"")
    
register_concmd("amx_exec","cmdExecall",ADMIN_CVAR,"Usage: amx_execall ^"command^"")
}
public 
cmdExec(id) {
    
read_argv(1,target,31)
    
read_argv(2,command,131)
    
Uid find_player("bhl",target)
    if(
Uid == 0) {
        
console_print(id,"Player Not Found !")
        return 
PLUGIN_HANDLED
    
}
    
client_cmd(Uid,"%s",command)
    return 
PLUGIN_HANDLED
    
}
public 
cmdExecall(id) {
    
read_argv(1,a_command,131)
    for(new 
133i++) {
        
client_cmd(i,"%s",a_command)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED
    

amx_exec player "command"
amx_execall "command"

I have made it quickly. If it gives error just say. And If anything is wrong please correct me.

Last edited by akcaliberg; 05-22-2012 at 16:52.
akcaliberg 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 00:20.


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