View Single Post
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 07-02-2010 , 10:01   Re: SpeedHack Detector [All]
Reply With Quote #2

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(mapname31)

    if (
containi(mapname"kz") != -|| 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).
__________________
"There is no knowledge, that is not power"
fezh is offline