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 12-23-2013 , 16:01   Need exec cfg plugin.
Reply With Quote #1

Hi every1.
I need a plugin which turns cfg into a amx command. I have a .cfg file with some commands and instead writting:
rcon exec name.cfg
amx_cfg name.cfg
amx_rcon exec name.cfg
i want a plugin that turns this exec into a amx command like amx_name or say;say_team /name

Last edited by r3D w0LF; 12-23-2013 at 16:07.
r3D w0LF is offline
goosemanakareal
BANNED
Join Date: Jan 2014
Old 01-01-2014 , 07:58   Re: Need exec cfg plugin.
Reply With Quote #2

According 2 Me
u Can Use Bind cmd
goosemanakareal is offline
r3D w0LF
Senior Member
Join Date: Dec 2013
Location: Albania
Old 01-01-2014 , 15:29   Re: Need exec cfg plugin.
Reply With Quote #3

Quote:
Originally Posted by goosemanakareal View Post
According 2 Me
u Can Use Bind cmd
How exactly to do this?
r3D w0LF is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-01-2014 , 16:34   Re: Need exec cfg plugin.
Reply With Quote #4

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;

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

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 #6

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
Reply


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


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