19.12.2010, 07:04
pawn Код:
new hn;//global variable
//Under ongamemodeinit
SetTimer("changehost", 3000,1); // it will change the server name after every 3 seconds
forward changehost();
public changehost()
{
switch(hn)
{
case 0:
{
SendRconCommand("hostname Stunt");
hn++;
}
case 1:
{
SendRconCommand("hostname Dm");
hn++;
}
case 2:
{
SendRconCommand("hostname Race");
hn = 0;
}
}
return 1;
}