This works perfectly, when the map is hd_harlem.
But I change map to de_dust2, don't work.
Code:
new allow_maps[][][] = {
{ "hd_harlem", "Hidden City" },
{ "de_dust2", "Dust2" }
}
public plugin_init()
{
register_dictionary(DICTIONARY)
new map_name[32], buffer[128], index
get_mapname(map_name, 31)
for(index=0;index<sizeof(allow_maps);index++)
{
if(equali(map_name, allow_maps[index][0]))
{
Patch_MapName(allow_maps[index][1])
break
}
else
{
formatex(buffer, sizeof(buffer), "%L", LANG_SERVER, "HIDDEN_WRONG_MAP")
set_fail_state(buffer)
return
}
}
}