Quote:
Originally Posted by botz
That // thing turned off trail it doesnt work for admins either now :/
|
Admins should still be able to use the amx_trail_user
Did you want it so only admins can use the Chat Command?
I have not coded in a long time but I think the bottom should work. So only admins with KICK LEVEL can only use trail chat command.
Find this code below in the plugin Specifically line 405
PHP Code:
public SayCmd(id, level, cid) {
new args[128], msg[200], plName[MAX_NAME_LENGTH], colname[MAX_NAME_LENGTH], arg2[MAX_NAME_LENGTH], arg3[MAX_NAME_LENGTH], typenum
read_args(args, 128)
remove_quotes(args) // THIS IS LINE 405
After line 405 add this
PHP Code:
if (!(get_user_flags(id) & ADMIN_KICK))
{
client_print(id, print_chat, "You don't have access to trails.");
return PLUGIN_HANDLED;
}
Final Outcome would look like this
PHP Code:
public SayCmd(id, level, cid) {
new args[128], msg[200], plName[MAX_NAME_LENGTH], colname[MAX_NAME_LENGTH], arg2[MAX_NAME_LENGTH], arg3[MAX_NAME_LENGTH], typenum
read_args(args, 128)
remove_quotes(args)
if (!(get_user_flags(id) & ADMIN_KICK))
{
client_print(id, print_chat, "You don't have access to trails.");
return PLUGIN_HANDLED;
}
__________________