mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Update CMisc.h
Stop humans being mistaken for bots.
This commit is contained in:
parent
f3e9611a2d
commit
8ecbd86951
@ -83,18 +83,8 @@ public:
|
||||
|
||||
inline bool IsBot()
|
||||
{
|
||||
if ((pEdict->v.flags & FL_FAKECLIENT) == FL_FAKECLIENT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
const char *auth = GETPLAYERAUTHID(pEdict);
|
||||
if (auth && (strcmp(auth, "BOT") == 0))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
const char *auth = GETPLAYERAUTHID(pEdict);
|
||||
return auth && !strcmp(auth, "BOT");
|
||||
}
|
||||
|
||||
inline bool IsAlive()
|
||||
|
Loading…
Reference in New Issue
Block a user