This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Execute cfg via chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fjlep
Junior Member
Join Date: Apr 2024
Old 04-20-2024 , 23:02   Re: Execute cfg via chat
Reply With Quote #7

Quote:
Originally Posted by tedaimlocks View Post
this should work, i guess


HTML Code:
#include <amxmodx>

#define PLUGIN "CFG Via Chat"
#define VERSION "1.0"
#define AUTHOR "tedaimlocks"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_clcmd("say /lo3", "cfg")
	register_clcmd("say_team /lo3", "cfg")
}

public cfg() {
	server_cmd("exec lo3.cfg");
}
It works! How do I add more cfg's to the same plugin?
fjlep 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 20:39.


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