multiple syntax updates to adjust for 1.11.0.6946 SM build
This commit is contained in:
parent
a0c0f7e92d
commit
b64abac26d
@ -124,6 +124,7 @@ public void OnClientDisconnect_Post(int client)
|
||||
public Action Timer_CheckStatus(Handle hTimer)
|
||||
{
|
||||
CheckStatus();
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
public Action Command_Record(int client, int args)
|
||||
|
@ -193,10 +193,10 @@ public Action Command_PrintToAllChat(int args)
|
||||
public Action Timer_DataProcessor(Handle hThis)
|
||||
{
|
||||
if (!g_bProcessingData)
|
||||
return;
|
||||
return Plugin_Handled;
|
||||
|
||||
if (g_iRatelimitRemaining == 0 && GetTime() < g_iRatelimitReset)
|
||||
return;
|
||||
return Plugin_Handled;
|
||||
|
||||
//PrintToServer("[Timer_DataProcessor] Array Length #1: %d", g_arrQueuedMessages.Length);
|
||||
|
||||
@ -231,10 +231,12 @@ public Action Timer_DataProcessor(Handle hThis)
|
||||
delete RequestJSON;
|
||||
delete hRequest;
|
||||
|
||||
return;
|
||||
return Plugin_Handled;
|
||||
}
|
||||
return Plugin_Handled;
|
||||
}
|
||||
public Action Hook_UserMessage(UserMsg msg_id, Handle bf, const players[], int playersNum, bool reliable, bool init)
|
||||
|
||||
public Action Hook_UserMessage(UserMsg msg_id, Handle bf, const int[] players, int playersNum, bool reliable, bool init)
|
||||
{
|
||||
char sMessageName[32];
|
||||
char sMessageSender[64];
|
||||
@ -244,18 +246,19 @@ public Action Hook_UserMessage(UserMsg msg_id, Handle bf, const players[], int p
|
||||
BfReadString(bf, sMessageSender, sizeof(sMessageSender), false);
|
||||
|
||||
if (iAuthor <= 0 || iAuthor > MaxClients)
|
||||
return;
|
||||
return Plugin_Handled;
|
||||
|
||||
if (strlen(sMessageName) == 0 || strlen(sMessageSender) == 0)
|
||||
return;
|
||||
return Plugin_Handled;
|
||||
|
||||
if (strcmp(sMessageName, "#Cstrike_Name_Change") == 0)
|
||||
return;
|
||||
return Plugin_Handled;
|
||||
|
||||
if (sMessageName[13] == 'C' || sMessageName[13] == 'T' || sMessageName[13] == 'S')
|
||||
g_bTeamChat = true;
|
||||
else
|
||||
g_bTeamChat = false;
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
stock bool Steam32IDtoSteam64ID(const char[] sSteam32ID, char[] sSteam64ID, int Size)
|
||||
@ -358,7 +361,7 @@ stock int OnTransferComplete(Handle hRequest, bool bFailure, bool bRequestSucces
|
||||
}
|
||||
|
||||
delete hRequest;
|
||||
return;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int iBodyLength;
|
||||
@ -370,6 +373,7 @@ stock int OnTransferComplete(Handle hRequest, bool bFailure, bool bRequestSucces
|
||||
delete hRequest;
|
||||
|
||||
APIWebResponse(sData, client);
|
||||
return 0;
|
||||
}
|
||||
|
||||
stock void APIWebResponse(const char[] sData, int client)
|
||||
@ -542,7 +546,7 @@ public int OnHTTPRequestCompleted(Handle hRequest, bool bFailure, bool bRequestS
|
||||
delete RequestJSON;
|
||||
delete hRequest;
|
||||
|
||||
return;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int iLastRatelimitRemaining = 0;
|
||||
@ -572,6 +576,7 @@ public int OnHTTPRequestCompleted(Handle hRequest, bool bFailure, bool bRequestS
|
||||
|
||||
delete RequestJSON;
|
||||
delete hRequest;
|
||||
return 0;
|
||||
}
|
||||
|
||||
stock bool IsValidClient(int client)
|
||||
@ -582,10 +587,10 @@ stock bool IsValidClient(int client)
|
||||
public Action OnLogAction(Handle hSource, Identity ident, int client, int target, const char[] sMsg)
|
||||
{
|
||||
if (client <= 0)
|
||||
return;
|
||||
return Plugin_Handled;
|
||||
|
||||
if ((StrContains(sMsg, "sm_psay", false)!= -1) || (StrContains(sMsg, "sm_chat", false)!= -1))
|
||||
return;// dont log sm_psay and sm_chat
|
||||
return Plugin_Handled;// dont log sm_psay and sm_chat
|
||||
|
||||
char sFinal[256];
|
||||
char sCurrentMap[32];
|
||||
@ -608,7 +613,7 @@ public Action OnLogAction(Handle hSource, Identity ident, int client, int target
|
||||
else
|
||||
Discord_POST(DISCORD_ADMINLOGS_WEBHOOKURL, sFinal, true, sClientName, false, "", false);
|
||||
|
||||
return;
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
public Action CommandListener_SmChat(int client, const char[] sCommand, int argc)
|
||||
|
2
FakeClients/scripting/FakeClients.sp
Normal file → Executable file
2
FakeClients/scripting/FakeClients.sp
Normal file → Executable file
@ -149,6 +149,7 @@ public Action RandomizePing(Handle timer)
|
||||
if(g_bFakePopulation[i])
|
||||
g_iLatency[i] = g_iBaseLatency[i] + GetRandomInt(-3, 3);
|
||||
}
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
@ -169,6 +170,7 @@ public Action RandomizeNames(Handle timer)
|
||||
}
|
||||
}
|
||||
delete hNames;
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
@ -385,6 +385,7 @@ int MenuHandler_NotifyPanel(Menu hMenu, MenuAction iAction, int iParam1, int iPa
|
||||
case MenuAction_Select, MenuAction_Cancel:
|
||||
delete hMenu;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
@ -270,9 +270,9 @@ typeset SteamWorksHTTPDataReceived
|
||||
|
||||
typeset SteamWorksHTTPBodyCallback
|
||||
{
|
||||
function void (const char sData[]);
|
||||
function void (const char sData[], any value);
|
||||
function void (const int data[], any value, int datalen);
|
||||
function void (const char[] sData);
|
||||
function void (const char[] sData, any value);
|
||||
function void (const int[] data, any value, int datalen);
|
||||
};
|
||||
|
||||
#else
|
||||
|
@ -593,6 +593,7 @@ public Action C_Event_MapStart(Event event, const char[] name, bool dontBroadcas
|
||||
|
||||
MuCo_LoopClients(i)
|
||||
C_SkipList[i] = false;
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -667,6 +667,7 @@ public Action Command_SetNextmap(int client, int args)
|
||||
public Action Command_ReloadMaps(int client, int args)
|
||||
{
|
||||
InitializeOfficialMapList();
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
public Action Command_hours_average(int client, int args)
|
||||
@ -731,6 +732,7 @@ public Action Timer_StartWarningTimer(Handle timer)
|
||||
|
||||
if(!g_WarningInProgress || g_WarningTimer == INVALID_HANDLE)
|
||||
SetupWarningTimer(WarningType_Vote);
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
public Action Timer_StartMapVote(Handle timer, Handle data)
|
||||
|
@ -338,6 +338,7 @@ public Action Timer_DelayRTV(Handle timer)
|
||||
{
|
||||
g_RTVAllowed = true;
|
||||
PrintToChatAll("[RTVE] RockTheVote is available now!");
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
void StartRTV()
|
||||
|
Loading…
Reference in New Issue
Block a user