View Single Post
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 04-11-2017 , 12:20   Re: [ANY] Smart Link Remover
Reply With Quote #30

Quote:
Originally Posted by Agent Wesker View Post
@Mitchell

I check the code and see CheckCommandAccess(client, "sm_smartlinkremover", ADMFLAG_ROOT, false)

but there is no such command, is this broken or I just don't understand how it works?

(I'm coding another plugin and need to check for VIPs)
https://sm.alliedmods.net/new-api/co...kCommandAccess

bool CheckCommandAccess(int client, const char[] command, int flags, bool override_only)
bool override_only
PHP Code:
If trueSourceMod will not attempt to find a matching command, and it will only use the default flags specifiedOtherwiseSourceMod will ignore the default flags if there is a matching admin command
that basically means that it doesn't matter what command in there it will just check the flag that is written there regardless of the command
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...
Totenfluch is offline