Prosty plugin na tagi w tabeli
#include <sourcemod>
#include <cstrike>
public Plugin:myinfo =
{
name = "New Plugin",
author = "Unknown",
description = "<- Description ->",
version = "1.0",
url = "<- URL ->"
}
public void OnPluginStart()
{
HookEvent("player_spawn", Event_OnPlayerSpawn);
}
public Action Event_OnPlayerSpawn(Handle event, char [] name, bool dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"));
if (GetUserFlagBits(client) & ADMFLAG_ROOT)
{
CS_SetClientClanTag(client, "- Wlasciciel -");
}
if (GetUserFlagBits(client) & ADMFLAG_GENERIC)
{
CS_SetClientClanTag(client, "- Admin -");
}
if (GetUserFlagBits(client) & ADMFLAG_CUSTOM6)
{
CS_SetClientClanTag(client, "- Vip -");
}
else
{
CS_SetClientClanTag(client, "- Gracz -");
}
}