Thanks for making a working version of my old plugin
Just a couple of things you can change:
PHP Code:
is_valid_map()
{
static mapname[32]
get_mapname(mapname, 31)
if (containi(mapname, "kz") != -1 || containi(mapname, "surf") != -1)
{
set_fail_state("SHD does not work on Kreedz / Surf maps.")
return false;
}
return true;
}
I don't think such function is still needed, but if you think so you can change static to new since there is no purpose of using static variables there (this goes also to the punish_player(id) function).
__________________