Thread: Quick Det [TFC]
View Single Post
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-03-2007 , 18:08   Re: Quick Det [TFC]
Reply With Quote #7

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).
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.
pizzahut is offline