take note that only 1 person can have the VIP tag at anytime and only the team of the person with the tag can see it. you also need sdkhooks.
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#pragma semicolon 1
new VIPIndex;
public OnMapStart()
{
new PMIndex = FindEntityByClassname(0, "cs_player_manager");
SDKHook(PMIndex, SDKHook_ThinkPost, OnThinkPost);
}
public OnThinkPost(entity)
{
if ((VIPIndex > 0) && (VIPIndex <= MaxClients) && IsClientInGame(VIPIndex) && IsPlayerAlive(VIPIndex))
{
SetEntProp(entity, Prop_Send, "m_iPlayerVIP", VIPIndex);
}
}
VIPIndex in the index of the player you want to have the tag, set it some where in your script.