21.03.2010, 11:26
nice but simple:
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 the name u want");
hn++;
}
case 1:
{
SendRconCommand("hostname the name u want");
hn++;
}
case 2:
{
SendRconCommand("hostname the name u want");
hn = 0;
}
}
return 1;
}
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 the name u want");
hn++;
}
case 1:
{
SendRconCommand("hostname the name u want");
hn++;
}
case 2:
{
SendRconCommand("hostname the name u want");
hn = 0;
}
}
return 1;
}