mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
Fix startzone jump chat spam (#186)
This commit is contained in:
parent
503c163709
commit
7e21d5327b
@ -492,7 +492,7 @@ public Action OnPlayerRunCmd(int client, int &buttons)
|
||||
// prespeed
|
||||
if(!gA_StyleSettings[Shavit_GetBhopStyle(client)][bPrespeed] && bInStart)
|
||||
{
|
||||
if((gI_PreSpeed == 2 || gI_PreSpeed == 3) && (gI_LastFlags[client] & FL_ONGROUND) > 0 && (GetEntityFlags(client) & FL_ONGROUND) > 0 && (buttons & IN_JUMP) > 0)
|
||||
if((gI_PreSpeed == 2 || gI_PreSpeed == 3) && (gI_LastFlags[client] & FL_ONGROUND) == 0 && (GetEntityFlags(client) & FL_ONGROUND) > 0 && (buttons & IN_JUMP) > 0)
|
||||
{
|
||||
TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, view_as<float>({0.0, 0.0, 0.0}));
|
||||
Shavit_PrintToChat(client, "Bhopping in the start zone is not allowed.");
|
||||
|
||||
@ -839,7 +839,7 @@ public void SQL_UpdatePointsTable_Callback(Database db, DBResultSet results, con
|
||||
|
||||
public void UpdatePlayerRank(int client)
|
||||
{
|
||||
if(!IsValidClient(client))
|
||||
if(!IsValidClient(client) || gH_SQL == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user