can you set the server name in the game mode
#1

is this possible or not
Reply
#2

Quote:
Originally Posted by johnathon956
is this possible or not
Do you mean change the server name while in game?
Reply
#3

Quote:
Originally Posted by Shady91
Quote:
Originally Posted by johnathon956
is this possible or not
Do you mean change the server name while in game?
He means changing the server name from the gamemode script using pwn script.

No, that's only from the server.cfg. the only thing you can set is the Mode and Map.
Reply
#4

Quote:
Originally Posted by DJDhan
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by johnathon956
is this possible or not
Do you mean change the server name while in game?
He means changing the server name from the gamemode script using pwn script.

No, that's only from the server.cfg. the only thing you can set is the Mode and Map.
You can change the server name using pawn.
Reply
#5

By editing server.cfg using pawn?
Reply
#6

pawn Code:
SendRconCommand("hostname NAMEHERE");
Simple
Reply
#7

I was gonna say that Or just login to rcon then /rcon hostname OMGLOLOLOL
Reply
#8

lol i was thinking something like

pawn Code:
#define hostname        "=AS="
#define     mapname         "=AS="
#define     modename        "=AS="
#define     website         "=AS=.com"
Reply
#9

Quote:
Originally Posted by johnathon956
lol i was thinking something like

pawn Code:
#define hostname        "=AS="
#define     mapname         "=AS="
#define     modename        "=AS="
#define     website         "=AS=.com"
I think you can only do this then:
pawn Code:
#define modename "My IceCream" //On the top

//OnGameModeInit
SetGameModeText(modename); //Set's the mode of the gm :)
For the other stuff I think you need to use SendRconCommand
Reply
#10

this change the server name every 2 second +- ::D
Code:
new changename = 1;
forward CHANGE();

public OnFilterScriptInit()
{
   SetTimer("CHANGE", 2000, 1);
}

public CHANGE()
{
	if(changename == 1)
 	{
 		changename = 2;
  	SendRconCommand("hostname servername 1");
   	return 1;
  }
	else if(changename == 2)
 	{
 		changename = 3;
  	SendRconCommand("hostname server name 2");
  	return 1;
  }
  else if(changename == 3)
  {
  	changename = 1;
   	SendRconCommand("hostname servername 3");
   	return 1;
  }
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)