View Single Post
pizzahut
Senior Member
Join Date: Oct 2004
Old 10-28-2020 , 06:10   Re: Proxy snort 1.2 (Updated 10/08/2020)
Reply With Quote #4

About the tag, you could use http://www.amxmodx.org/api/amxmodx/get_modname to catch all mods.
Code:
new mod_name[32]
get_modname(mod_name, charsmax(mod_name))
set_pcvar_string(g_cvar_tag, mod_name)
Another thing, you're printing messages to everyone. IMHO it should go to admins only.

I use this in a different plugin:

Code:
for (new admin=1; admin<=32; admin++)
	if (is_user_connected(admin) && is_user_admin(admin))
		client_print(admin, print_chat, "(to admins) This is a test.")

Last edited by pizzahut; 10-28-2020 at 14:39.
pizzahut is offline