SA-MP Forums Archive
Map Name - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Map Name (/showthread.php?tid=333432)



Map Name - Plastic - 11.04.2012

Does anyone know the code to set the map name in server list?


Re: Map Name - Mark™ - 11.04.2012

pawn Код:
SendRconCommand("mapname Yourmapname");



Re: Map Name - Shabi RoxX - 11.04.2012

SendRconCommand();, Like

pawn Код:
SendRconCommand("mapname Los Santos");
That you want ? right ?


Re: Map Name - Plastic - 11.04.2012

yeah thanks guys :3


Re: Map Name - afa_handler - 11.04.2012

Or you can put in server.cfg

Код:
mapname Los santos



Re: Map Name - [Ez]Panther - 12.04.2012

put this were foward is

Код:
forward ChangeMapName();
then this were timer is i suggest ongamemodeinit

Код:
SetTimer("ChangeMapName",1500,1);
this finaly this to change diffrent map names

Код:
public ChangeMapName()
{
   new var = random(2); //(Change the 2 to a different number if you are adding more message or deleting)
   switch (var)
   {
     case 0: SendRconCommand("mapname |name here|"); // WARNING: Do not delete "mapname"
     case 1: SendRconCommand("mapname |name here|"); // WARNING: Do not delete "mapname"
   }
}
just incase you wanted something better