RSSy MYGO.pl Opublikowano Maj 31, 2021 o 14:12 RSSy Udostępnij Opublikowano Maj 31, 2021 o 14:12 LISTEN SERVER ONLY IMPORTANT NOTE: SourceMod doesn't support Listen Servers. Description Usually, plugin commands, when typed from the console, don't work on listen servers because the client index output is 0 (server). A workaround to this is binding commands with the say command. e.g.: (in console) "sm_admin" don't works, while "say !sm_admin" works. This plugin executes plugin commands from the console as if it were the host, by finding its client index. This is useful for me to test plugins in my dev local server, hope to be useful for others aswell. Features Convert console commands with client index 0 to their respective client host index. Cvars A configuration file named "l4d_console_cmd_listensv.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder. PHP Code: // Enable/Disable the plugin. // 0 = Disable, 1 = Enable. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d_console_cmd_listensv_enable "1" Admin Commands sm_print_cvars_l4d_console_cmd_listensv => Print the plugin related cvars and their respective values to the console. (z flag required) Change Log Spoiler 1.0.1 (31-May-2021) - Public release. 1.0.0 (11-May-2021) - Private release. Notes This plugin only works on LISTEN SERVER. (local host launched with "-insecure" parameter) Thank you! Tonblader - for testing in his server. Crasher_3637 - for helping me with the code. Related Plugins [ANY] Chat Trigger to Lower Case by Marttt Post Reply Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome. Installation Put the "l4d_console_cmd_listensv.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder. Attached Files Get Plugin or Get Source (l4d_console_cmd_listensv.sp - 10.7 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi