mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Fixed a bug noted by mahnsawce
This commit is contained in:
parent
1efbb0f65e
commit
58f13e887c
@ -110,8 +110,7 @@ public:
|
||||
bool Connect(const char* connectname,const char* ipaddress);
|
||||
|
||||
inline bool IsBot(){
|
||||
const char* auth= (*g_engfuncs.pfnGetPlayerAuthId)(pEdict);
|
||||
return ( auth && !strcmp( auth , "BOT" ) );
|
||||
return ((pEdict->v.flags & FL_FAKECLIENT)?true:false);
|
||||
}
|
||||
|
||||
inline bool IsAlive(){
|
||||
|
@ -628,6 +628,8 @@ const char *MNF_GetAmxScriptName(int id)
|
||||
while (iter && id--)
|
||||
++iter;
|
||||
|
||||
if ((*iter) == NULL)
|
||||
return NULL;
|
||||
return (*iter).getName();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user