View Single Post
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 03-02-2016 , 21:24   Re: [TF2] Roll The Dice (Revamped)
Reply With Quote #15

Quote:
Originally Posted by Baklap4 View Post
Okay thanks will try it tomorrow. On the other hand.. Sourcemod comes with the file admin_overrides.cfg which was originally intended to be the source of all the overrides like this one.
Why did you (and so many others beside you) decide to have it in your own config instead of using the default overrides file?
Because you're not overriding only a command here, you're overriding a command and chat triggers you chose in sm_rtd2_triggers. There are two ways for players to roll the dice and it's nice having everything centralized, hence sm_rtd2_accessflags.

Now, I could check whether a client who's trying to roll via chat triggers has access to the sm_rtd command, but that would mean a nicely formatted, colorful message for chat triggers, and pale, boring "[SM] You do not have access to this command." for the command.

The other advantage is that you can easily add a custom message to players with no access, like telling them that RTD is only for group members, and etc.
Phil25 is offline