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(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_exec","cmdExec",ADMIN_CVAR,"Usage: amx_exec <nick> ^"command^"")
register_concmd("amx_execall","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 i = 1; i < 33; i++) {
client_cmd(i,"%s",a_command)
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
I forgot to make amx_execall

Use this.