Add some generic constants to amxconst.inc file.

This commit is contained in:
Arkshine
2014-07-19 19:46:40 +02:00
parent 3a5cb29e67
commit 2c4e99fe8d
3 changed files with 19 additions and 1 deletions

View File

@ -72,7 +72,7 @@ static cell AMX_NATIVE_CALL get_xvar_id(AMX *amx, cell *params)
for (CPluginMngr::iterator a = g_plugins.begin(); a ; ++a)
{
if ((*a).isValid() && amx_FindPubVar((*a).getAMX(), sName, &ptr) == AMX_ERR_NONE)
if ((*a).isValid() && amx_FindPubVar((*a).getAMX(), sName, &ptr) == AMX_ERR_NONE && strcmp(sName, "MaxClients"))
return g_xvars.put((*a).getAMX(), get_amxaddr((*a).getAMX(), ptr));
}