I have this code
PHP Code:
#include <sourcemod>
#include <cstrike>
public Plugin myinfo =
{
name = "HUD",
author = "Nevvy",
description = "",
version = "",
url = "Nevvy.pl"
};
public OnPluginStart()
{
CreateTimer(5.0, HUD, _, TIMER_REPEAT);
}
public Action HUD(Handle timer)
{
for (new i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i))
{
SetHudTextParams(-1.0, 0.1, 5.0, 0, 255, 255, 255, 0, 0.1, 0.1, 0.1);
ShowHudText(i, 5, "• YOUR MESSAGE •");
}
}
}
I wanted the hud message to be displayed only to players who are on spectator team.
And, if possible, display only when teams are full (5vs5).
Can someone help me?
Sorry for my bad english.