SA-MP Forums Archive
NAme help - 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: NAme help (/showthread.php?tid=637089)



NAme help - itachi - 08.07.2017

Please I need help with how to create mapname in Server hostname


Re: NAme help - Bingo - 08.07.2017

Changing your host name you mean?


Re: NAme help - itachi - 08.07.2017

No,
I want I have zombie tdm,and maps name want in hostname


Re: NAme help - Bingo - 08.07.2017

Quote:
Originally Posted by itachi
Посмотреть сообщение
No,
I want I have zombie tdm,and maps name want in hostname
Use /rcon login yourpassword then /rcon hostname whateveryouwanthere or if you want to change your mapname then /rcon mapname whatevermapname


Re: NAme help - itachi - 08.07.2017

No,No,No

I need

I Have HOSTNAME : ZOMBIE BLABLABLA
I Have MAPNAME : ZombieInterior

so I want to HOSTNAME : Zombie | MAP : ZombieInterior

if round end,so new map MAPNAME : DeadCity


so I want to HOSTNAME : Zombie | MAP : DeadCity

I want to automatic change mapname to hostname


Re: NAme help - Bingo - 08.07.2017

Код:
// above main()
forward Hostchange();

public OnFilterScriptInit()// or gamemodeinti
{
   SetTimer("Hostchange",1000,1); // Change 1000 to whatever you want this is in milliseconds.
   return 1;
}

public Hostchange()
{
   new var = random(3);
   switch (var)
   {
     case 0: SendRconCommand("hostname server name 1");
     case 1: SendRconCommand("hostname Server name 2");
     case 2: SendRconCommand("hostname servre name 3");
   }
}
Add this.