mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +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()
|
inline bool IsBot()
|
||||||
{
|
{
|
||||||
if ((pEdict->v.flags & FL_FAKECLIENT) == FL_FAKECLIENT)
|
const char *auth = GETPLAYERAUTHID(pEdict);
|
||||||
{
|
return auth && !strcmp(auth, "BOT");
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *auth = GETPLAYERAUTHID(pEdict);
|
|
||||||
if (auth && (strcmp(auth, "BOT") == 0))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool IsAlive()
|
inline bool IsAlive()
|
||||||
|
Loading…
Reference in New Issue
Block a user