deleting result sets, some bug fixes etc

This commit is contained in:
jenz
2023-04-30 15:21:36 +02:00
parent 334b5bbde4
commit 7ddd33ef0d
3 changed files with 34 additions and 7 deletions
+10 -5
View File
@@ -90,8 +90,13 @@ public void OnPluginStart()
g_bDisplaySpecial = unloze_gBSpecialMapDisplay();
}
public Action allow_leaving_again(Handle hTimer, int client)
public Action allow_leaving_again(Handle hTimer, int Serial)
{
int client;
if ((client = GetClientFromSerial(Serial)) == 0)
{
return;
}
if (IsValidClient(client))
{
g_bClient_allowed_to_leave_again[client] = true;
@@ -121,7 +126,7 @@ public void trigger_teleport(const char[] output, int entity_index, int client,
resetClientVectors(client);
g_bClient_allowed_to_leave_again[client] = false;
PrintToChat(client, "Disabled timer due to potential teleport abuse, type 1.");
CreateTimer(1.0, allow_leaving_again, client);
CreateTimer(1.0, allow_leaving_again, GetClientSerial(client));
}
}
}
@@ -137,7 +142,7 @@ public void Trigger_Multiple(const char[] output, int entity_index, int client,
resetClientVectors(client);
g_bClient_allowed_to_leave_again[client] = false;
PrintToChat(client, "Disabled timer due to potential teleport abuse, type 1.");
CreateTimer(1.0, allow_leaving_again, client);
CreateTimer(1.0, allow_leaving_again, GetClientSerial(client));
}
}
}
@@ -524,7 +529,7 @@ public void OnPlayerRunCmdPost(int client, int buttons, int impulse, const float
resetClientVectors(client);
g_bClient_allowed_to_leave_again[client] = false;
PrintToChat(client, "Disabled timer due to potential teleport abuse, type 2.");
CreateTimer(1.0, allow_leaving_again, client);
CreateTimer(1.0, allow_leaving_again, GetClientSerial(client));
return;
}
int frameCap = 11;
@@ -734,7 +739,7 @@ public void CheckIfSpecialRoundZones(char[] resultstart, char[] resultend)
//----------------------------------------------------------------------------------------------------
public void CheckifAntiZones(int client, bool reset)
{
if (reset)
if (reset && g_bHumansAllowedTime[client])
{
g_bHumansAllowedTime[client] = false;
PrintToChat(client, "Disabled Timer due to using illegal shortcut");