mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +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);
|
bool Connect(const char* connectname,const char* ipaddress);
|
||||||
|
|
||||||
inline bool IsBot(){
|
inline bool IsBot(){
|
||||||
const char* auth= (*g_engfuncs.pfnGetPlayerAuthId)(pEdict);
|
return ((pEdict->v.flags & FL_FAKECLIENT)?true:false);
|
||||||
return ( auth && !strcmp( auth , "BOT" ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool IsAlive(){
|
inline bool IsAlive(){
|
||||||
|
@ -628,6 +628,8 @@ const char *MNF_GetAmxScriptName(int id)
|
|||||||
while (iter && id--)
|
while (iter && id--)
|
||||||
++iter;
|
++iter;
|
||||||
|
|
||||||
|
if ((*iter) == NULL)
|
||||||
|
return NULL;
|
||||||
return (*iter).getName();
|
return (*iter).getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user