As the title states, how the code would be if mapname prefix is detected?
For example, if I run any map with same prefix (de_dust2, de_inferno, de_season), a script will run, determining that it will only active when these prefix are detected. Optional: print message after script successfully loaded.
It should be something like this in server.lua:
1
2
3
4
5
2
3
4
5
mapPrefix = de_
if mapPrefix == true then
	dofile("sys/lua/script.lua")
end
I ask this because I am reworking on my BF 2 Class System script and will create custom map (don't compliment for its cerativity
) based on it.
Activate script if map prefix detected
1 
Offline
tontonEd