changed so chat tag can still display even if having a clan tag

This commit is contained in:
jenz 2024-01-20 15:43:16 +01:00
parent f6a44654b2
commit 99063d3de6

View File

@ -9,7 +9,7 @@ public Plugin myinfo =
name = "Racetimer Rank",
author = "jenz",
description = "Give racetimer points as a level clan tag to players, also for chat tag",
version = "1.0",
version = "1.1",
url = ""
};
@ -131,10 +131,7 @@ public void OnClientPostAdminFilter(int client)
}
g_b_ignoring_tags[client] = false;
if (!HasClanTag(client))
{
check_ignoring_tags(client);
}
check_ignoring_tags(client);
}
public bool HasClanTag(int client)
@ -239,9 +236,13 @@ public int OnTransferResponse(char[] sData, int iSerial)
{
I_player_points = 1000; //setting level 1
}
char tag[64];
Format(tag, sizeof(tag), "[LVL %i]", I_player_points/1000);
CS_SetClientClanTag(client, tag);
if (!HasClanTag(client))
{
char tag[64];
Format(tag, sizeof(tag), "[LVL %i]", I_player_points/1000);
CS_SetClientClanTag(client, tag);
}
int I_rank = obj.GetInt("Rank") //if no endpoint for steamID default value is -1
if (0 < I_rank < 1000) //only give chat tag to top 1000