Skip to content

Commit f83b693

Browse files
GameCMS storage: fix get admin id error (#270)
1 parent b1ff8be commit f83b693

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cstrike/addons/amxmodx/scripting/CA_Storage_GameCMS.sma

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ public plugin_cfg() {
8383
}
8484

8585
public client_putinserver(id) {
86+
if(!g_storageInitialized) {
87+
return
88+
}
89+
8690
GameCMS_GetAdminID(id)
8791
}
8892

@@ -447,6 +451,13 @@ public handle_GetServerID(failstate, Handle: query, error[], errnum, data[], siz
447451
CA_Log(logLevel_Warning, "Saved %i queue gags to DB (slow DB connection issue)", queueCounter)
448452
queueCounter = 0
449453
}
454+
455+
new players[MAX_PLAYERS], count
456+
get_players_ex(players, count, .flags = (GetPlayers_ExcludeBots | GetPlayers_ExcludeHLTV))
457+
458+
for(new i; i < count; i++) {
459+
GameCMS_GetAdminID(players[i])
460+
}
450461
}
451462

452463
enum {

0 commit comments

Comments
 (0)