Map Name
#1

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

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

SendRconCommand();, Like

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

yeah thanks guys :3
Reply
#5

Or you can put in server.cfg

Код:
mapname Los santos
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)