It's not about plugins but anyway.
I wonder if we can have an enhanced "switch" to work with strings.
Something like this:
PHP Code:
//global
new variable
//local
new Map[32]
get_mapname(Map, charsmax(Map))
switch( Map )
{
case "de_dust2": variable = 1;
case "de_inferno": variable = 2;
//more cases here
default: server_print( "Unknown map!" );
}
__________________