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)