[FS/SNIPPET] Advanced mapname and hostname changer
#11

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)