Advertising

U

User_8389

On some free hosts I see that every so often that a message is sent via private message of server chat advertising to upgrade the server etc... does anybody know how to do this?
 

Najsr

Moderator
TeamSpeak Developer
Apr 23, 2016
483
249
167
That is pretty simple, you connect to a server and iterate through clients then you can send a message to them. A simple 'pseudo code'
Code:
Clients := Server.GetClients()
foreach(Client in Clients)
{
if(Client.ClientType is 0)
   Client.SendPrivateMessage("My Ad here")
}
 
Top