AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Human Pass through the entity (https://forums.alliedmods.net/showthread.php?t=331513)

NOVA GAMING 03-23-2021 23:58

Human Pass through the entity
 
How can i let any particular team to pass through an entity ? something like Sandbags for ZP

i have tried Touch things to make the Toucher the pev_owner and let him Pass through the Entity but if more than 2 touches they stuck .

i have heard of pev_groupinfo but i have no idea about this :D

Natsheh 03-24-2021 00:37

Re: Human Pass through the entity
 
By hooking addtofullpack

NOVA GAMING 03-24-2021 02:46

Re: Human Pass through the entity
 
Quote:

Originally Posted by Natsheh (Post 2741533)
By hooking addtofullpack

Any example sir ?

CryWolf 03-24-2021 04:24

Re: Human Pass through the entity
 
Look at the plugin semiclip on this forums, source code, basically it does the same thing.
Im sure you will manage to add required checks for team's and entity
PHP Code:

#include < amxmodx >
#include < fakemeta >

#define PLUGIN "[RZ] Test"
#define VERSION "1.0"
#define AUTHOR "H.RED.ZONE"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_forward(FM_AddToFullPack"client_AddToFullPack_P"1)
}

public 
client_AddToFullPack_P(eseentidhostflagsplayerpSet) {
    if( 
player && id != ent && get_orig_retval() && is_user_alive(id)) {
        
set_es(entES_SolidSOLID_NOT)
    }




All times are GMT -4. The time now is 00:45.

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