Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion game/addons/sourcemod/scripting/include/sourcecomms.inc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#define SBPPComms_VERSION_MAJOR "1"
#define SBPPComms_VERSION_MINOR "8"
#define SBPPComms_VERSION_PATCH "3"
#define SBPPComms_VERSION_PATCH "4"

#define SBPPComms_VERSION SBPPComms_VERSION_MAJOR..."."...SBPPComms_VERSION_MINOR..."."...SBPPComms_VERSION_PATCH

Expand Down
21 changes: 8 additions & 13 deletions game/addons/sourcemod/scripting/sbpp_comms.sp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ ConVar CvarPort;
Database g_hDatabase;
Database SQLiteDB;

char
char
ServerIp[24]
, ServerPort[7]
, DatabasePrefix[10] = "sb"
Expand All @@ -110,13 +110,13 @@ char

float RetryTime = 15.0;

bool
bool
g_bLate
, g_bPlayerAuthentified[MAXPLAYERS + 1] // Bots and players with invalid Steam ID format will always be FALSE
, g_bPlayerStatus[MAXPLAYERS + 1] // Player block check status
, g_bPlayerVerified[MAXPLAYERS + 1]; // Player has been verified into the database

int
int
iNumReasons
, iNumTimes
, g_iTimeMinutes[MAX_TIMES]
Expand All @@ -140,11 +140,11 @@ Handle g_hGagExpireTimer[MAXPLAYERS + 1] = { null, ... }
, g_hMuteExpireTimer[MAXPLAYERS + 1] = { null, ... };

bType g_MuteType[MAXPLAYERS + 1];
char
char
g_sMuteAdminName[MAXPLAYERS + 1][MAX_NAME_LENGTH]
, g_sMuteReason[MAXPLAYERS + 1][256]
, g_sMuteAdminAuth[MAXPLAYERS + 1][64];
int
int
g_iMuteTime[MAXPLAYERS + 1]
, g_iMuteLength[MAXPLAYERS + 1] // in sec
, g_iMuteLevel[MAXPLAYERS + 1]; // immunity level of admin
Expand All @@ -155,7 +155,7 @@ char
g_sGagAdminName[MAXPLAYERS + 1][MAX_NAME_LENGTH]
, g_sGagReason[MAXPLAYERS + 1][256]
, g_sGagAdminAuth[MAXPLAYERS + 1][64];
int
int
g_iGagTime[MAXPLAYERS + 1]
, g_iGagLength[MAXPLAYERS + 1] // in sec
, g_iGagLevel[MAXPLAYERS + 1]; // immunity level of admin
Expand Down Expand Up @@ -1877,12 +1877,9 @@ public void Query_VerifyBlock(Database db, DBResultSet results, const char[] err

// TIMER CALL BACKS //

public Action Timer_ClientRecheck(Handle timer, DataPack RetryDP)
public Action Timer_ClientRecheck(Handle timer, int userid)
{
RetryDP.Reset();
int userid = RetryDP.ReadCell();
int client = GetClientOfUserId(userid);
delete RetryDP;

if (!client)
return Plugin_Stop;
Expand Down Expand Up @@ -2149,9 +2146,7 @@ stock void setMute(int client, int length, const char[] clientAuth)

stock void ClientRecheck(int client)
{
DataPack RetryDP = new DataPack();
RetryDP.WriteCell(g_iUserIDs[client]);
CreateTimer(1.0, Timer_ClientRecheck, RetryDP, TIMER_FLAG_NO_MAPCHANGE);
CreateTimer(1.0, Timer_ClientRecheck, g_iUserIDs[client], TIMER_FLAG_NO_MAPCHANGE);
}

stock bool IsInvalidSteamID(int client)
Expand Down