AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Semiclip Bug (https://forums.alliedmods.net/showthread.php?t=299752)

PurposeLessx 07-24-2017 15:20

Semiclip Bug
 
Hello friends,
I need semiclip plugin that is fixed from door bugs.
I have lots of semiclip plugin but every plugins have bug.
I wanna describe the problem.

While the semiclip is on, the door can't be opened due to terrorists are near to door.
I used this command to fix it. I have fixed it but now there is a problem that I can not see my friend's name while semiclip is on.

PHP Code:

forward_return(FMV_CELL0)
return 
FMRES_SUPERCEDE


PurposeLessx 07-28-2017 14:46

Re: Semiclip Bug
 
Is there anyone who can help me please?

OciXCrom 07-28-2017 17:40

Re: Semiclip Bug
 
You didn't provide any code.

PurposeLessx 07-29-2017 03:15

Re: Semiclip Bug
 
Sorry here is code

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <hamsandwich>

#define IsPlayer(%1) (1 <= %1 <= get_maxplayers())

new players[32], inumsemiclip_cvar

public plugin_init() {
    
register_plugin("Semiclip""1.1""Crusher918"// Edited by PurposeLess

    
RegisterHam(Ham_Player_PreThink"player""FwdHamPlayerPreThink"true)
    
RegisterHam(Ham_Killed"player""FwdHamPlayerKilled"true)
    
register_forward(FM_ShouldCollide"FwdShouldCollide")
    
register_forward(FM_AddToFullPack"FwdAddToFullPack"true)

    
semiclip_cvar register_cvar("semiclip""0")
}

public 
FwdHamPlayerPreThink(const id) {
    
Semiclip(idSOLID_NOT)
}

public 
client_PostThink(id) {
    
Semiclip(idSOLID_SLIDEBOX)
}

public 
FwdHamPlayerKilled() {
    
get_players(playersinum"a")
    for(new 
i=0inumi++) {
        
entity_set_int(players[i], EV_INT_solidSOLID_SLIDEBOX)
    }
}

public 
FwdShouldCollide(const touched, const other) {
    if(
get_user_team(touched) != get_user_team(other))
        return 
FMRES_IGNORED;

    if(
IsPlayer(touched) && IsPlayer(other)) {
        
forward_return(FMV_CELL0)
        return 
FMRES_SUPERCEDE;
    }
    return 
FMRES_IGNORED;
}

public 
FwdAddToFullPack(eseiEntidhostflagsplayerpSet) {
    if(
get_user_team(id) != get_user_team(iEnt))
        return

    if(
player && id != iEnt && get_orig_retval()) {
        
set_es(esES_SolidSOLID_NOT)
    }
}

Semiclip(const id, const solid) {
    if(
get_pcvar_num(semiclip_cvar)) {
        if(!
is_user_alive(id))
            return

        
get_players(playersinum"a")
        for(new 
0inumi++) {
            if(
id != players[i]) {
                if(
get_user_team(players[i]) != get_user_team(id))
                    return

                
entity_set_int(players[i], EV_INT_solidsolid)
            }
        }
    }



PurposeLessx 08-01-2017 07:42

Re: Semiclip Bug
 
Anyone can help?

leonardo121 08-01-2017 07:49

Re: Semiclip Bug
 
Quote:

Originally Posted by PurposeLessx (Post 2539048)
Anyone can help?

try this one
https://forums.alliedmods.net/showthread.php?t=59455


All times are GMT -4. The time now is 22:50.

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