core.plugins.queue.sv_init
Spawn Queue
- Serverjoinqueue.add(sid)Source ☍
-
Add a steamid to the queue.
Parameters
- sidanyThe steamID to add.
- Serverjoinqueue.checkqueue(name, pass, sid, ip) → string|table|unknown|nilSource ☍
-
Function called by join queue auth. Ignores administrators, allowing bypass.
Parameters
- nameanyThe player's name.
- passanyPassword given by the client.
- sidanyThe player's SteamID.
- ipanyThe player's IP address.
Returns
- string|table|unknown|nilIf nil, no action taken. If string, the failure message to pass to the client.
- Serverjoinqueue.isAdmin(sid) → booleanSource ☍
-
Function to check if a given steam id belongs to an administrator.
Parameters
- sidanyThe steamID to check.
Returns
- booleanIf the steamID belongs to an administrator.
- Serverjoinqueue.list()Source ☍
-
Send a message to administrators with the current join queue order.
- Serverjoinqueue.place(sid) → integer|unknownSource ☍
-
Get a SteamID's place in the queue.
Parameters
- sidanyThe steamID to check.
Returns
- integer|unknownThe player's place in the queue.
- Serverjoinqueue.precacheadmins()Source ☍
-
Function to populate joinqueue.admins with administrators.
- Serverjoinqueue.remove(sid)Source ☍
-
Remove a SteamID from the queue.
Parameters
- sidanyThe steamID to remove.
- Serverjoinqueue.SaveDisconnected(name, steamid, id, reason)Source ☍
-
Try saving a player to the disconnected player's queue. If player was kicked, this won't work.
Parameters
- nameanyThe player's name.
- steamidanySteamID of the player.
- idanyNetwork ID.
- reasonanyReason for the leave.
- Serverjoinqueue.spamcheck(sid) → boolean, booleanSource ☍
-
Run spamchecks for the player.
Parameters
- sidanySteamID to check.
Returns
- 1booleanthe player has been blocked.
- 2booleanthe block is newly enforced.
- ServerpairsByKeys(t, f) → functionSource ☍
-
Return a iterator function, sorted by keys.
Parameters
- tanyTable to iterate.
- fanyFunction to sort keys by.
Returns
- function
- ServerjoinqueueSource ☍
-
The main joinqueue table.
- Serverjoinqueue.adminsSource ☍
-
List of admins.
- Serverjoinqueue.discplayersSource ☍
-
List of recently disconnected players.
- Serverjoinqueue.queueSource ☍
-
The current queue members.
- Serverjoinqueue.queueorderSource ☍
-
The order of the queue.
- Serverjoinqueue.spamblockSource ☍
-
List of players blocked for spamming join.
- Serverjoinqueue.spamchecklogSource ☍
-
List of players being chuecked for spamming.