MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / CanAdminUseCommand

Method CanAdminUseCommand

core/logic/AdminCache.cpp:1663–1683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1661}
1662
1663bool AdminCache::CanAdminUseCommand(int client, const char *cmd)
1664{
1665 FlagBits bits;
1666 OverrideType otype = Override_Command;
1667
1668 if (cmd[0] == '@')
1669 {
1670 otype = Override_CommandGroup;
1671 cmd++;
1672 }
1673
1674 if (!bridge->LookForCommandAdminFlags(cmd, &bits))
1675 {
1676 if (!GetCommandOverride(cmd, otype, &bits))
1677 {
1678 bits = 0;
1679 }
1680 }
1681
1682 return CheckClientCommandAccess(client, cmd, bits);
1683}
1684
1685unsigned int AdminCache::SetGroupImmunityLevel(GroupId gid, unsigned int level)
1686{

Callers

nothing calls this directly

Calls 2

GetCommandOverrideFunction · 0.85

Tested by

no test coverage detected