Viewing map names in string
#2

you could define the mapname on top of you script

pawn Код:
#define mapname SomeAwesomeMap
and then set it in OnGamemodeInit
pawn Код:
SendRconCommand("mapname "mapname"");
you can use the map name in a string like this
pawn Код:
new string[] = mapname;
now "string" will hold the defined mapname


btw. you could also load the mapname from somewhere, making it more dynamic


Quote:
Originally Posted by newbienoob
Посмотреть сообщение
nice!didn't know that myself
Reply


Messages In This Thread
Viewing map names in string - by ConnorHunter - 07.03.2014, 17:45
Re: Viewing map names in string - by CutX - 07.03.2014, 18:55
Re: Viewing map names in string - by newbienoob - 07.03.2014, 18:57

Forum Jump:


Users browsing this thread: 1 Guest(s)