23.12.2009, 20:17
There is a more easier way of doing it. This was already posted a long time ago, which i also use on my server. Anyways here it is:
pawn Код:
forward ChangeHostname(); // at the top
public OnGameModeInit()
{
SetTimer("ChangeHostname",2000,1); // every 2 seconds
}
public ChangeHostname()
{
new var = random(3);
switch (var)
{
case 0: SendRconCommand("hostname Gamemode Text 1");
case 1: SendRconCommand("hostname I Fail");
case 2: SendRconCommand("hostname Hello there!");
}
}