Raised This Month: $ Target: $400
 0% 

Solved Blocking func_conveyor.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 04-23-2022 , 09:28   Re: Blocking func_conveyor.
Reply With Quote #1

Hi, there is option to change entity's value, in this situation it would be 'speed' but problem is that u need it only for specific players/duel. You can try to solve this with pev_groupinfo maybe?

__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)

Last edited by JocAnis; 04-23-2022 at 10:36.
JocAnis is offline
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 04-23-2022 , 13:00   Re: Blocking func_conveyor.
Reply With Quote #2

Quote:
Originally Posted by JocAnis View Post
Hi, there is option to change entity's value, in this situation it would be 'speed' but problem is that u need it only for specific players/duel. You can try to solve this with pev_groupinfo maybe?

on duels they fight 1v1, last CT vs T
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951
kww is offline
zXCaptainXz
Member
Join Date: May 2017
Old 04-24-2022 , 15:04   Re: Blocking func_conveyor.
Reply With Quote #3

Quote:
Originally Posted by JocAnis View Post
Hi, there is option to change entity's value, in this situation it would be 'speed' but problem is that u need it only for specific players/duel. You can try to solve this with pev_groupinfo maybe?

What he said works, you can try this if you want, type amx_disable to disable to disable all conveyors, amx_enable to enable them all again, you can use whatever is inside cmdDisable and cmdEnable in your last request code (Disable on start, Enable on finish...)

PHP Code:
#include <amxmodx>
#include <engine>

new bool:Disabled

public plugin_init()
{
    
register_concmd("amx_disable""cmdDisable")
    
register_concmd("amx_enable""cmdEnable")
}

public 
cmdDisable()
{
    if(
Disabled)
        return;
    
    
Disabled true;

    new 
ent
    
while((ent find_ent_by_class(ent,"func_conveyor")) != 0)
    {
        
entity_set_float(entEV_FL_fuser1entity_get_float(entEV_FL_speed))
        
entity_set_float(entEV_FL_speed0.0)
    }
}

public 
cmdEnable()
{
    if(!
Disabled)
    {
        return;
    }

    
Disabled false;
    
    new 
ent
    
while((ent find_ent_by_class(ent,"func_conveyor")) != 0)
    {
        
entity_set_float(entEV_FL_speedentity_get_float(entEV_FL_fuser1))
    }

zXCaptainXz is offline
Reply



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