Eventscripts currentmap
From EventScripts Community Encyclopedia
|
[edit] Descriptioneventscripts_currentmap stores the name of the current map.
server_var(eventscripts_currentmap)
eventscripts_currentmapNote: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.
[edit] Examplesplayer_say.cfg if (event_var(text) equalto "currentmap") then es_xmsg Current map is server_var(eventscripts_currentmap) es_map_load.cfg if (server_var(eventscripts_currentmap) = "de_port") then mp_c4timer 45 if (server_var(eventscripts_currentmap) = "de_dust") then mp_c4timer 30
|
