help hostname
#1

Hi all im trying to make a random hostname who can help me for example 3-4 hostname
Reply
#2

Can you be a little more specific? What's the server about, is it roleplay, deathmatch, etc? What I typically do is think of names of things locally in real life. For example, my username is named after "Magnuson Lake" in Seattle. So maybe you have a street near you called "Ragnar Street." Ragnar Deathmatch sounds pretty hardcore for a hostname. I don't know, just be creative. You'll figure something out.
Reply
#3

Yes help me also with the same thing
Reply
#4

Hello. You can use my filescript: https://sampforum.blast.hk/showthread.php?tid=544039.

May this will help you. Don't forgot to replace with your's hostnames, and to activate him In-Game.
Reply
#5

This section is for scripting help, not finding a name for your server.
But anyways, you can try as Magnuson said, you can probably find a cool name of a street or something nearby you.
Reply
#6

No man the name is not inportant i will change it but it need be automatic and random right?
Reply
#7

pawn Код:
// above main()
forward ChangeHostname();

public OnFilterScriptInit()
{
   SetTimer("ChangeHostname",1000,1); // Change the, 1000 to whatever you want, in milliseconds ofc.
   return 1;
}

public ChangeHostname()
{
   new var = random(3);
   switch (var)
   {
     case 0: SendRconCommand("hostname My server name 1");
     case 1: SendRconCommand("hostname Server name 2");
     case 2: SendRconCommand("hostname Name 3 here");
   }
}
Reply
#8

Quote:
Originally Posted by Alex Magaсa
Посмотреть сообщение
pawn Код:
// above main()
forward ChangeHostname();

public OnFilterScriptInit()
{
   SetTimer("ChangeHostname",1000,1); // Change the, 1000 to whatever you want, in milliseconds ofc.
   return 1;
}

public ChangeHostname()
{
   new var = random(3);
   switch (var)
   {
     case 0: SendRconCommand("hostname My server name 1");
     case 1: SendRconCommand("hostname Server name 2");
     case 2: SendRconCommand("hostname Name 3 here");
   }
}
0 error but the hostname don't change i need to add hostname on server.cfg?
Reply
#9

Quote:
Originally Posted by BlackEvils
Посмотреть сообщение
0 error but the hostname don't change i need to add hostname on server.cfg?
Did you add it to your gamemode/filterscript? server.cfg? If you didnt it wont work.
Sorry for my bad english, im deutsch and greek
Reply
#10

Quote:
Originally Posted by Alex Magaсa
Посмотреть сообщение
Did you add it to your gamemode? or server.cfg? If you didnt it wont work.
Sorry for my bad english, im deutsch and greek
i add on server.cfg hostname italia but the name don't change
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)