Fixed bug am43881: hideslots not working on first map

This commit is contained in:
David Anderson 2006-09-01 01:40:37 +00:00
parent 6a28bc602a
commit 35a96176fa

View File

@ -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)