Usage: AFBase::(method), example: AFBase::IsSafe()
Declaration | Description |
---|---|
bool IsSafe() | Returns true if precache was done |
string FormatSafe(string sInput) | Returns formated string, basically replaces any character that isnt (A-Z, a-z, 0-9, :, - or _) with "-" |
string GetFixedSteamID(CBasePlayer@ pPlayer) | Returns user's steamid, if in LAN will return nickname |
AFBaseUser@ GetUser(CBasePlayer@ pPlayer) | Returns AFBaseUser class for user |
AFBaseUser@ GetUser(int iEntIndex) | Returns AFBaseUser class for user |
array |
"explode" string into array, character in sFilter will be ignored |
string ImplodeString(array |
"implode" array of strings into one string |
bool CheckAccess(CBasePlayer@ pPlayer, int iAccess) | Returns true if player has defined access (see ACCESS_ENUM) |
bool CheckAccess(int iEntIndex, int iAccess) | Returns true if player has defined access (see ACCESS_ENUM) |
bool GetTargetPlayers(CBasePlayer@ &in pCommandUser, HUD &in hudtarget, string &in sWantedTarget, int &in iFlags, array |
Returns array of targets, see tutorial |
uint cclamp(uint in, uint min, uint max) | clamp to value |
int cclamp(int in, int min, int max) | clamp to value |
float cclamp(float in, float min, float max) | clamp to value |
bool IsNumeric(string in) | returns true if given string consists purely of numbers |
bool RemoveSingleItem(CBasePlayer@ target, string weapon) | returns true if removal of single weapon was successful, otherwise returns false. |