Hi, i'm trying to make an plugin to block the SPEED BAND on deathrun maps and the teleporter .
I've succesfuly blocked the teleport portals, but the speed band is still working, i've tried with regsiter_touch and ham_Use and both doesn't work .
heres the code:
PHP Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>
new const EntityPlayerClass [] = "player";
public plugin_init( )
{
register_touch( "trigger_teleport" , EntityPlayerClass , "player_touch" );
RegisterHam(Ham_Use, "func_conveyor", "ham_use");
}
public player_touch( ent, id )
{
if( is_user_alive(id) )
{
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
public ham_use( weapon, id )
{
if( is_user_alive(id) )
{
return HAM_SUPERCEDE;
}
return HAM_IGNORED;
}
__________________