changed so chat tag can still display even if having a clan tag
This commit is contained in:
parent
f6a44654b2
commit
99063d3de6
@ -9,7 +9,7 @@ public Plugin myinfo =
|
|||||||
name = "Racetimer Rank",
|
name = "Racetimer Rank",
|
||||||
author = "jenz",
|
author = "jenz",
|
||||||
description = "Give racetimer points as a level clan tag to players, also for chat tag",
|
description = "Give racetimer points as a level clan tag to players, also for chat tag",
|
||||||
version = "1.0",
|
version = "1.1",
|
||||||
url = ""
|
url = ""
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -131,10 +131,7 @@ public void OnClientPostAdminFilter(int client)
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_b_ignoring_tags[client] = false;
|
g_b_ignoring_tags[client] = false;
|
||||||
if (!HasClanTag(client))
|
check_ignoring_tags(client);
|
||||||
{
|
|
||||||
check_ignoring_tags(client);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool HasClanTag(int client)
|
public bool HasClanTag(int client)
|
||||||
@ -239,9 +236,13 @@ public int OnTransferResponse(char[] sData, int iSerial)
|
|||||||
{
|
{
|
||||||
I_player_points = 1000; //setting level 1
|
I_player_points = 1000; //setting level 1
|
||||||
}
|
}
|
||||||
char tag[64];
|
|
||||||
Format(tag, sizeof(tag), "[LVL %i]", I_player_points/1000);
|
if (!HasClanTag(client))
|
||||||
CS_SetClientClanTag(client, tag);
|
{
|
||||||
|
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
|
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
|
if (0 < I_rank < 1000) //only give chat tag to top 1000
|
||||||
|
Loading…
Reference in New Issue
Block a user