very very very pseudo code
Code:
#include <sourcemod>
#include <cstrike>
char gS_OriginalClan[MAXPLAYERS+1][32];
bool gB_SMChange = false;
public void OnPluginStart()
{
< hook clan tag changes here > (OnClanChanged);
< alternatively, query cl_clanid in OnClientSettingsChanged and compare to the previous value >
}
public void OnClientPutInServer(int client)
{
CS_GetClientClanTag(client, gS_OriginalClan[client], 32);
SetClanTag(client, ":D");
}
public void OnClanChanged(< prototype >)
{
if(!gB_SMChange)
{
int client = < get client index from userid >;
< copy clan tag to gS_OriginalClan[client] >
< optional: run any action you want to run in-case you want to do something when people manually change their clan tag >
}
gB_SMChange = false;
}
void SetClanTag(int client, const char[] tag)
{
gB_SMChange = true;
CS_GetClientClanTag(client, tag);
}
fill in the missing parts, then it should change the players' clan tags to ":D" while storing the original one in
gS_OriginalClan[client]
__________________