17.12.2010, 22:41
Is there a way to keep the name of the server changing like random sentences or something like that ?
public OnGameModeInit()
{
SetTimer("SetServerName",5000,1);//timer SetServerName, 5000 ms (5secs), looping true
forward SetServerName()
public SetServerName()
{
switch(random(3)) // change this to the ammount of random names
{
// cases start with zero not with one
case 0: SendRconCommand("hostname TDM"); // hostname TDM sets the name to TDM
case 1: SendRconCommand("hostname DM War of nations");
case 2: SendRconCommand("hostname www.tdm.com");
return 1;
}
}