Raised This Month: $12 Target: $400
 3% 

Semiclip Bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-24-2017 , 15:20   Semiclip Bug
Reply With Quote #1

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

Last edited by PurposeLessx; 07-28-2017 at 14:48.
PurposeLessx is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-28-2017 , 14:46   Re: Semiclip Bug
Reply With Quote #2

Is there anyone who can help me please?
PurposeLessx is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-28-2017 , 17:40   Re: Semiclip Bug
Reply With Quote #3

You didn't provide any code.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-29-2017 , 03:15   Re: Semiclip Bug
Reply With Quote #4

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 is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 08-01-2017 , 07:42   Re: Semiclip Bug
Reply With Quote #5

Anyone can help?
PurposeLessx is offline
leonardo121
Member
Join Date: Sep 2013
Old 08-01-2017 , 07:49   Re: Semiclip Bug
Reply With Quote #6

Quote:
Originally Posted by PurposeLessx View Post
Anyone can help?
try this one
https://forums.alliedmods.net/showthread.php?t=59455
__________________
" In the end it doesn't even matter " - Linkin Park
leonardo121 is offline
Reply


Thread Tools
Display Modes

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 19:23.


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