From 109338173cfc75bbd4de241870b8e0b02d388e11 Mon Sep 17 00:00:00 2001 From: jenz Date: Fri, 19 Jan 2024 12:30:30 +0100 Subject: [PATCH] giving fakeclients lvl 1 --- RaceTimer/scripting/racetimer_rank.sp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/RaceTimer/scripting/racetimer_rank.sp b/RaceTimer/scripting/racetimer_rank.sp index b67ecd4c..fd7cf7fb 100644 --- a/RaceTimer/scripting/racetimer_rank.sp +++ b/RaceTimer/scripting/racetimer_rank.sp @@ -25,8 +25,16 @@ public void OnPluginStart() public void OnClientPostAdminFilter(int client) { - if(!IsClientAuthorized(client) || IsFakeClient(client) || IsClientSourceTV(client)) + if(!IsClientAuthorized(client) || IsClientSourceTV(client)) return; + + if (IsFakeClient(client)) + { + char tag[64]; + Format(tag, sizeof(tag), "[LVL 1]"); + CS_SetClientClanTag(client, tag); + return; + } if (!HasClanTag(client)) {