Viewing map names in string
#1

How would I make a string display the map name, or mode ect

Something like GetMapName or something along those lines.
Reply
#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
#3

https://sampwiki.blast.hk/wiki/GetServerVarAsString
?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)