Raised This Month: $ Target: $400
 0% 

Need exec cfg plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
r3D w0LF
Senior Member
Join Date: Dec 2013
Location: Albania
Old 01-01-2014 , 17:14   Re: Need exec cfg plugin.
Reply With Quote #1

Quote:
Originally Posted by fysiks View Post
You have to change the names of things manually if you want the command or file changed. Then you need to compile it.

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

public plugin_init()
{
    
register_concmd("amx_something""cmdExecCfg"ADMIN_CFG);
}

public 
cmdExecCfg(idlevelcid)
{
    if( 
cmd_access(idlevelcid1) )
    {
        
server_cmd("exec name.cfg");
    }
    return 
PLUGIN_HANDLED;

Can i add various binds in the same sma/amxx file? If yes whats the script code?
r3D w0LF is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-01-2014 , 17:18   Re: Need exec cfg plugin.
Reply With Quote #2

There are no binds in this plugin. If you want to add commands, you can just use what I have there as a template and add your own.
__________________
fysiks is offline
r3D w0LF
Senior Member
Join Date: Dec 2013
Location: Albania
Old 01-01-2014 , 17:22   Re: Need exec cfg plugin.
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
There are no binds in this plugin. If you want to add commands, you can just use what I have there as a template and add your own.
I mean can i add 3 commands in 1 file?

EXample:
amx_cmd1 - exec 1.cfg
amx_cmd2 - exec 2.cfg
amx_cmd3 - exec 3.cfg

Last edited by r3D w0LF; 01-01-2014 at 17:23.
r3D w0LF is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-01-2014 , 18:03   Re: Need exec cfg plugin.
Reply With Quote #4

Yes
__________________
fysiks is offline
r3D w0LF
Senior Member
Join Date: Dec 2013
Location: Albania
Old 01-01-2014 , 18:25   Re: Need exec cfg plugin.
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
Yes
Can u give me sma script? Like this:
PHP Code:
#include <amxmodx> 
#include <amxmisc> 

public plugin_init() 

    
register_concmd("amx_something""cmdExecCfg"ADMIN_CFG); 


public 
cmdExecCfg(idlevelcid

    if( 
cmd_access(idlevelcid1) ) 
    { 
        
server_cmd("exec name.cfg"); 
    } 
    return 
PLUGIN_HANDLED

but ths time with 3 commands.

Last edited by r3D w0LF; 01-01-2014 at 18:26.
r3D w0LF is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-01-2014 , 18:55   Re: Need exec cfg plugin.
Reply With Quote #6

Tell me the exam command names and the config file you want to be executed first.
__________________
fysiks is offline
r3D w0LF
Senior Member
Join Date: Dec 2013
Location: Albania
Old 01-02-2014 , 06:57   Re: Need exec cfg plugin.
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
Tell me the exam command names and the config file you want to be executed first.
amx_codeon - codes.cfg
amx_pubmod - pub.cfg
amx_backall - back.cfg
r3D w0LF is offline
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 20:37.


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