From eb7a49f6d4e4084f8a14a5f8a88977ee64a24426 Mon Sep 17 00:00:00 2001 From: Christian Hammacher Date: Mon, 6 Mar 2006 15:27:30 +0000 Subject: [PATCH] fixed awful cvar bug, amx_reservedslots (which wasn't registered by the plugin) was used in the code instead of amx_reservation --- plugins/adminslots.sma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/adminslots.sma b/plugins/adminslots.sma index 69a9342c..f22b5bc0 100755 --- a/plugins/adminslots.sma +++ b/plugins/adminslots.sma @@ -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 -} +} \ No newline at end of file