Pause a plugin in specific map or Disable
Hello, how can I pause a plugin in specific map?
For example: If map has "ze_" prefix then it will disable zp_gamemode_nemesis.amxx && If map has "de_, cs_ or big_" prefix then it will disable zp_gamemode_multi_infection.amxx I've also used "configs/maps/plugins-<map prefix>.ini" method but it's more hassle to me. So I want other method instead of that. EDIT: Did try using this: PHP Code:
|
Re: Pause a plugin in specific map or Disable
How is editing multiple lines in a .sma file, recompiling the plugin and replacing it more of a hassle than adding one line in an .ini file?
Quote:
PS: you code doesn't work because you're checking "== -1" instead of "!= -1". https://amxx-bg.info/api/string/containi Quote:
|
Re: Pause a plugin in specific map or Disable
I'll stick with config "configs/maps/%s" method, it doesn't work as it get conflict with zp gamemode manager plugin.
|
Re: Pause a plugin in specific map or Disable
Code:
if ( containi ( g_map_name, "_de" ) != -1 ) |
| All times are GMT -4. The time now is 14:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.