diff --git a/RaceTimer/scripting/racetimer_rank.sp b/RaceTimer/scripting/racetimer_rank.sp index 479cfb0f..c4e2ba12 100644 --- a/RaceTimer/scripting/racetimer_rank.sp +++ b/RaceTimer/scripting/racetimer_rank.sp @@ -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