Raised This Month: $ Target: $400
 0% 

Solved Blocking func_conveyor.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 04-23-2022 , 07:22   Blocking func_conveyor.
Reply With Quote #1

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_touchentid )
{
    if( 
is_user_alive(id) )
    {
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_HANDLED;
}

public 
ham_useweaponid )
{
    if( 
is_user_alive(id) )
    {
        return 
HAM_SUPERCEDE;
    }
    return 
HAM_IGNORED;

__________________
Project: Among Us

Last edited by Craxor; 04-25-2022 at 05:29.
Craxor is offline
Send a message via ICQ to Craxor
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode