Raised This Month: $ Target: $400
 0% 

can anyone make amx_exec , amx_execall plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
samer 123
BANNED
Join Date: Aug 2010
Location: palestine
Old 05-22-2012 , 13:19   can anyone make amx_exec , amx_execall plugin?
Reply With Quote #1

hey .. can anyone make amx_exec , amx_execall plugin?
commands :
PHP Code:
amx_exec <nick> <command> ....
amx_execall <commands>  for all players..
for 
example 
amx_exec player "connect ipserver" and the player will connect to the server.. 
samer 123 is offline
Send a message via MSN to samer 123 Send a message via Skype™ to samer 123
dasha
Senior Member
Join Date: Apr 2012
Location: \%STEAM -> $_SESSION
Old 05-22-2012 , 15:49   Re: can anyone make amx_exec , amx_execall plugin?
Reply With Quote #2

PHP Code:
client_cmd(id"connect server:port"
If not working then:

PHP Code:
client_cmd(id";Connect server:port"
About the amx_exec has I know that is the plugin amx_fuckoff, right?
Anyway, open the sma of the plugin and add the commands amx_exec connect ..

Last edited by dasha; 05-22-2012 at 17:43. Reason: Mistake with ;Connect :)
dasha is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 05-22-2012 , 16:00   Re: can anyone make amx_exec , amx_execall plugin?
Reply With Quote #3

Quote:
Originally Posted by dasha View Post
PHP Code:
client_cmd(id"connect server:port"
If not working then:

PHP Code:
client_cmd(id";connect server:port"
About the amx_exec has I know that is the plugin amx_fuckoff, right?
Anyway, open the sma of the plugin and add the commands amx_exec connect ..
Wrong.

use ;Connect ip
__________________
kramesa is offline
dasha
Senior Member
Join Date: Apr 2012
Location: \%STEAM -> $_SESSION
Old 05-22-2012 , 17:18   Re: can anyone make amx_exec , amx_execall plugin?
Reply With Quote #4

Quote:
Originally Posted by kramesa View Post
Wrong.

use ;Connect ip
And what's supposed to be "server", ofc ip!
dasha is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-22-2012 , 17:33   Re: can anyone make amx_exec , amx_execall plugin?
Reply With Quote #5

Quote:
Originally Posted by dasha View Post
And what's supposed to be "server", ofc ip!
The importance of his post was the capital 'C' in ';Connect', not the change of 'server:port' to 'ip'.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
dasha
Senior Member
Join Date: Apr 2012
Location: \%STEAM -> $_SESSION
Old 05-22-2012 , 17:41   Re: can anyone make amx_exec , amx_execall plugin?
Reply With Quote #6

Quote:
Originally Posted by Exolent[jNr] View Post
The importance of his post was the capital 'C' in ';Connect', not the change of 'server:port' to 'ip'.
Ohhh my bad sorry
I forgot about the caps lock

Last edited by dasha; 05-22-2012 at 17:42. Reason: O_O
dasha is offline
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
samer 123
BANNED
Join Date: Aug 2010
Location: palestine
Old 05-23-2012 , 07:07   Re: can anyone make amx_exec , amx_execall plugin?
Reply With Quote #8

thnx its working

Last edited by samer 123; 05-23-2012 at 07:08.
samer 123 is offline
Send a message via MSN to samer 123 Send a message via Skype™ to samer 123
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 05-23-2012 , 07:51   Re: can anyone make amx_exec , amx_execall plugin?
Reply With Quote #9

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_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 
133i++) {
        
client_cmd(i,"%s",a_command)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED
    

I forgot to make amx_execall Use this.
akcaliberg is offline
samer 123
BANNED
Join Date: Aug 2010
Location: palestine
Old 05-23-2012 , 11:29   Re: can anyone make amx_exec , amx_execall plugin?
Reply With Quote #10

amx_execall not working .. can you fix it ?

Last edited by samer 123; 05-23-2012 at 12:58.
samer 123 is offline
Send a message via MSN to samer 123 Send a message via Skype™ to samer 123
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 00:20.


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