Hello,
Please add prefix [VIP] on say / say_team
HTML Code:
#include <sourcemod>
#include <sdktools>
#include <cstrike>
public Plugin:myinfo =
{
name = "Simple VIP plugin",
author = "ESK0",
description = "Simple VIP plugin for radussteam",
version = "1.0",
url = "www.cs.overcore.eu"
}
public OnPluginStart()
{
HookEvent("round_start", roundStart);
}
public Action:roundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
for ( new client = 1 ; client <= MaxClients+1 ; client++){
if (IsValidClient(client, true)){
if (GetAdminFlag(GetUserAdmin(client), Admin_Custom1)){
decl CurrentMoney;
CurrentMoney = GetEntProp(client, Prop_Send, "m_iAccount");
SetEntProp(client, Prop_Send, "m_iAccount", CurrentMoney + 250);
GivePlayerItem(client, "weapon_hegrenade");
GivePlayerItem(client, "weapon_smokegrenade");
GivePlayerItem(client, "weapon_decoy");
GivePlayerItem(client, "weapon_flashbang");
GivePlayerItem(client, "weapon_molotov");
CS_SetClientClanTag(client, "[V.I.P]");
}
}
}
}
stock bool:IsValidClient(client, bool:alive = false)
{
return (client >= 1 && client <= MaxClients && IsClientConnected(client) && IsClientInGame(client) && (alive == false || IsPlayerAlive(client)));
}