mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed bug am43881: hideslots not working on first map
This commit is contained in:
parent
6a28bc602a
commit
35a96176fa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user