need help with hostname
#1

hey everyone, im using stevo127's cops and robbers. Im trying to change the hostname and gamemode names on server.cfg but they stay the same as they were before. I also changed the hostnames and gamemode through the gm script and compiled but still nothing changed. Please can someone tell me how to change the name and let it appear changed not stay the same as it was before


i will rep if someone manages to tell me how
Reply
#2

Show us your server.cfg and your code where it sets the hostname.
Reply
#3

Server.cfg :

echo Executing Server Config...
lanmode 0
password
rcon_password password
maxplayers 36
port 77777
hostname [FLA] Cops and Robbers
gamemode0 SFCRRPG 1
filterscripts
plugins irc streamer sscanf
announce 0
query 1
weburl www.flacnr.smfnew.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 1



Code :

(line 1460-1474)

public OnGameModeInit()
{
new string[128];
format(string,sizeof(string),"hostname [FLA] Cops and Robbers v%s",sversion);
SendRconCommand(string);

SetGameModeText("Cops and Robbers");
SetTeamCount(1);
AllowInteriorWeapons(1);
//UsePlayerPedAnims();
SetWorldTime(12);
SetWeather(10);
ManualVehicleEngineAndLights();
AllowAdminTeleport(1);
ConnectNPC("Billy","SFTram");


(line 15946 - 15995)

public GameModeText() // There is more Types of the normal message because we want this shown the most often.
{
new string[128];
new grand =random(9);
if(grand == 1)
{
format(string,sizeof(string),"hostname [FLA] Cops and Robbers v%s",sversion);
SendRconCommand(string);
}
if(grand == 2)
{
format(string,sizeof(string),"hostname [FLA] Cops and Robbers");
SendRconCommand(string);
}
if(grand == 3)
{
format(string,sizeof(string),"hostname [FLA] Cops and Robbers");
SendRconCommand(string);
}
if(grand == 4)
{
format(string,sizeof(string),"hostname [FLA] Cops and Robbers");
SendRconCommand(string);
}
if(grand == 5)
{
format(string,sizeof(string),"hostname [FLA] Cops and Robbers",sversion);
SendRconCommand(string);
}
if(grand == 6)
{
format(string,sizeof(string),"hostname [FLA] Cops and Robbers v%s",sversion);
SendRconCommand(string);
}
if(grand == 7)
{
format(string,sizeof(string),"hostname [FLA] Cops and Robbers v%s",sversion);
SendRconCommand(string);
}
if(grand ==
{
format(string,sizeof(string),"hostname [FLA] Cops and Robbers v%s",sversion);
SendRconCommand(string);
}
if(grand == 9)
{
format(string,sizeof(string),"hostname [FLA] Cops and Robbers v%s",sversion);
SendRconCommand(string);
}
}
Reply
#4

oh and in the server in game at bottom of the screen it still shows the old website www.sfcrrpg.com instead of mine and i changed it in the script
Reply
#5

Have you checked out the whole script ? You must have missed somewhere inside.
Reply
#6

Quote:
Originally Posted by Soulbad
Посмотреть сообщение
hey everyone, im using stevo127's cops and robbers. Im trying to change the hostname and gamemode names on server.cfg but they stay the same as they were before. I also changed the hostnames and gamemode through the gm script and compiled but still nothing changed. Please can someone tell me how to change the name and let it appear changed not stay the same as it was before


i will rep if someone manages to tell me how

see inside of your game mode that must or might be like this
Код:
format( HostName, sizeof( HostName ), "hostname Yourhostname",Version );
or some think like this...chang and press f5 to compile it.....thanks !

Quote:
Originally Posted by Silentfood
Посмотреть сообщение
Show us your server.cfg and your code where it sets the hostname.
  • First it should be changed from server.cfg
  • Other wise you can change it from game mode

Reply
#7

Are you use, that you opened the pawno.exe and edited it? Because if you open the .pwn and edited, it will be the original (without saving the changes)
Reply
#8

Problem resolved by suhrab_majeeb, thank you sry that i couldnt give rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)