AlliedModders

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

One 03-27-2009 10:15

Semiclip
 
Hi,

i edited semiclip to give semi to all teams, bot a CT cant attack a T or a T cant attack CT. is there anyway to get this running?

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "Semiclip"
#define VERSION "1.31"
#define AUTHOR "skyjur"

new bool:plrSolid[33]
new 
bool:plrRestore[33]

new 
maxplayers

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_forward(FM_PlayerPreThink"preThink")
    
register_forward(FM_PlayerPostThink"postThink")
    
    
register_forward(FM_AddToFullPack"addToFullPack"1)
    
    
maxplayers get_maxplayers()
}

public 
addToFullPack(eseenthosthostflagsplayerpSet)
{
    if(
player)
    {
        if(
plrSolid[host] && plrSolid[ent] )
        {
            
set_es(esES_SolidSOLID_NOT)
            
set_es(esES_RenderModekRenderTransAlpha)
            
set_es(esES_RenderAmt85)
        }
    }
}

FirstThink()
{
    for(new 
1<= maxplayersi++)
    {
        if(!
is_user_alive(i))
        {
            
plrSolid[i] = false
            
continue
        }
        
        
        
plrSolid[i] = pev(ipev_solid) == SOLID_SLIDEBOX true false
    
}
}

public 
preThink(id)
{
    static 
iLastThink
    
    
if(LastThink id)
    {
        
FirstThink()
    }
    
LastThink id

    
    
if(!plrSolid[id]) return
    
    for(
1<= maxplayersi++)
    {
        if(!
plrSolid[i] || id == i) {
        
            
set_pev(ipev_solidSOLID_NOT)
            
plrRestore[i] = true
        
}

    }
}

public 
postThink(id)
{
    static 
i
    
    
for(1<= maxplayersi++)
    {
        if(
plrRestore[i])
        {
            
set_pev(ipev_solidSOLID_SLIDEBOX)
            
plrRestore[i] = false
        
}
    }



vato loco [GE-S] 03-27-2009 10:46

Re: Semiclip
 
1 Attachment(s)
here it's allready done by SchlumPF
Team Semiclip

One 03-27-2009 10:52

Re: Semiclip
 
Quote:

Originally Posted by vato loco [GE-S] (Post 790212)
here it's allready done by SchlumPF
Team Semiclip

hihi. nice. where did u found this? :shock: ty. ill try now

vato loco [GE-S] 03-27-2009 11:00

Re: Semiclip
 
it's not in the data base of Allied Modder !!!
it's from xtreme-jumps
link is included in the .zip

One 03-27-2009 11:12

Re: Semiclip
 
Quote:

Originally Posted by vato loco [GE-S] (Post 790224)
it's not in the data base of Allied Modder !!!
it's from xtreme-jumps
link is included in the .zip

Yea, i saw that. ( but dont wanted edit ma post ).Ty. that was a big help.

P4rD0nM3 05-29-2009 03:54

Re: Semiclip
 
Does the semiclip work?

One 05-29-2009 08:06

Re: Semiclip
 
Quote:

Originally Posted by P4rD0nM3 (Post 837116)
Does the semiclip work?

sure


All times are GMT -4. The time now is 08:53.

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