This is basically just PrintToChat but you can give it 0 as a client index which messages to all players. I am new to SourceMod so go easy, it may not be the best quality.
Example:
Code:
ChatMessage(0,"This is a message to the whole server");
Code:
Code:
stock ChatMessage(target,const String:message[],any:...)
{
decl String:buffer[192];
VFormat(buffer,191,message,3);
if(target)
PrintToChat(target,"%s",buffer);
else
{
new maxplayers=GetMaxClients()
for(new index=1;index<=maxplayers;index++)
{
if(IsClientConnected(index))
PrintToChat(index,"%s",buffer);
}
}
}