View Single Post
fjlep
Junior Member
Join Date: Apr 2024
Old 04-20-2024 , 23:02   Re: Execute cfg via chat
Reply With Quote #4

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