...just use the version of
PrintToChatAll that exists in the SourceMod API.
Edit: If you really want to know what the code for PrintToChatAll looks like:
PHP Code:
stock void PrintToChatAll(const char[] format, any ...)
{
char buffer[254];
for (int i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i))
{
SetGlobalTransTarget(i);
VFormat(buffer, sizeof(buffer), format, 2);
PrintToChat(i, "%s", buffer);
}
}
}
__________________