SA-MP Forums Archive
help hostname - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help hostname (/showthread.php?tid=548494)



help hostname - BlackEvils - 30.11.2014

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


Re: help hostname - Magnuson - 30.11.2014

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.


Re: help hostname - DeathReaper - 30.11.2014

Yes help me also with the same thing


Re: help hostname - HY - 30.11.2014

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.


Re: help hostname - CalvinC - 30.11.2014

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.


Re: help hostname - BlackEvils - 30.11.2014

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


Re: help hostname - Alex Magaсa - 30.11.2014

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");
   }
}



Re: help hostname - BlackEvils - 30.11.2014

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?


Re: help hostname - Alex Magaсa - 30.11.2014

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


Re: help hostname - BlackEvils - 30.11.2014

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