mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 06:48:04 +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()
|
public plugin_cfg()
|
||||||
|
{
|
||||||
|
set_task(3.0, "MapLoaded")
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapLoaded()
|
||||||
{
|
{
|
||||||
if (!get_pcvar_num(g_HidePtr))
|
if (!get_pcvar_num(g_HidePtr))
|
||||||
return PLUGIN_CONTINUE
|
return
|
||||||
|
|
||||||
new maxplayers = get_maxplayers()
|
new maxplayers = get_maxplayers()
|
||||||
new players = get_playersnum(1)
|
new players = get_playersnum(1)
|
||||||
new limit = maxplayers - get_pcvar_num(g_ResPtr)
|
new limit = maxplayers - get_pcvar_num(g_ResPtr)
|
||||||
setVisibleSlots(players, maxplayers, limit)
|
setVisibleSlots(players, maxplayers, limit)
|
||||||
|
|
||||||
return PLUGIN_CONTINUE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ackSignal(id)
|
public ackSignal(id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user