fixed awful cvar bug, amx_reservedslots (which wasn't registered by the plugin) was used in the code instead of amx_reservation
This commit is contained in:
parent
982b22ab20
commit
eb7a49f6d4
@ -86,7 +86,7 @@ public plugin_init()
|
||||
public plugin_cfg()
|
||||
{
|
||||
/* Get configured number of reserved slots */
|
||||
gReservedSlots = get_cvar_num("amx_reservedslots")
|
||||
gReservedSlots = get_cvar_num("amx_reservation")
|
||||
|
||||
/* The maximum number of players after reserved slot(s) */
|
||||
gPlayerLimit = get_maxplayers() - gReservedSlots
|
||||
@ -119,4 +119,4 @@ public client_authorized(id)
|
||||
}
|
||||
|
||||
return PLUGIN_CONTINUE
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user