From 35a96176fa92e5b384e73903ce1a963e5e22829d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 1 Sep 2006 01:40:37 +0000 Subject: [PATCH] Fixed bug am43881: hideslots not working on first map --- plugins/adminslots.sma | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/adminslots.sma b/plugins/adminslots.sma index c2e6a62f..2387e8d2 100755 --- a/plugins/adminslots.sma +++ b/plugins/adminslots.sma @@ -52,16 +52,19 @@ public plugin_init() } public plugin_cfg() +{ + set_task(3.0, "MapLoaded") +} + +public MapLoaded() { if (!get_pcvar_num(g_HidePtr)) - return PLUGIN_CONTINUE + return new maxplayers = get_maxplayers() new players = get_playersnum(1) new limit = maxplayers - get_pcvar_num(g_ResPtr) setVisibleSlots(players, maxplayers, limit) - - return PLUGIN_CONTINUE } public ackSignal(id)