Hellow,
Code:
// Show overlay to all clients with lifetime | 0.0 = no auto remove
stock void ShowOverlayAll(char[] path, float lifetime)
{
for (int i = 1; i <= MaxClients; i++)
{
if (!IsClientInGame(i) || IsFakeClient(i) || IsClientSourceTV(i) || IsClientReplay(i))
continue;
int iFlag = GetCommandFlags("r_screenoverlay") & (~FCVAR_CHEAT);
SetCommandFlags("r_screenoverlay", iFlag);
ClientCommand(i, "r_screenoverlay \"%s.vtf\"", path);
if (lifetime != 0.0)
CreateTimer(lifetime, DeleteOverlay, GetClientUserId(i));
}
}
Use this function
__________________