How would I go about handling if the plugin is accidently run using a different mod? Can I do something like
Code:
public plugin_init() {
if is_running("tfc") {
register_...
} else {
server_print("[AMXX] Quick Det requires TFC to run.^n")
server_cmd("amx_pausecfg stop quick_det.amxx")
}
}
Keep in mind that no TFC native is used (only a constant), and that server_cmd is executed *after* plugin_init.
Also I might add an info message, so players know it's running and what it does (optionally, cvar controlled).
__________________