fixed check if player has no previous time and added check for displaying a certain message
This commit is contained in:
parent
ee95d3582e
commit
ce4933d124
@ -81,7 +81,10 @@ public void trigger_teleport(const char[] output, int entity_index, int client,
|
||||
{
|
||||
g_bHumansAllowedTime[client] = false;
|
||||
resetClientVectors(client);
|
||||
PrintToChat(client, "Disabled timer due to potential teleport abuse, if this is wrong annoy jenz on discord");
|
||||
if (GetClientTeam(client) == 3)
|
||||
{
|
||||
PrintToChat(client, "Disabled timer due to potential teleport abuse, if this is wrong annoy jenz on discord");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -600,7 +603,7 @@ public void FinishedStageRaceZone(int client)
|
||||
{
|
||||
old_client_time = StringToFloat(g_csTime_record[client]);
|
||||
}
|
||||
if (client_time >= old_client_time)
|
||||
if (client_time >= old_client_time && old_client_time > 0.0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user