I believe this would work too:
Code:
new mapname[4]
get_mapname( mapname, 3 )
if( equali( mapname, "de_" ) )
// ...
OR
Code:
new mapname[20]
get_mapname( mapname, 19 )
mapname[3] = 0 // or is it "\0" or something similar?
if( equali( mapname, "de_" ) )
// ...
Correct me if I'm wrong. I'm more confident in the first one being true than the second one.
__________________