Raised This Month: $ Target: $400
 0% 

help - semiclip ladders


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
arnaldo_silva
Member
Join Date: Jun 2008
Old 08-28-2009 , 18:18   help - semiclip ladders
Reply With Quote #1

Well that plugin makes semiclip at ladders.

Well my problem is that he only do semiclip when is 2 people on the ladder. Is possible put when is only one player on the ladder he get's automatically semiclip. This is for hns for the people on the ladder don't block. Can some one edit this plugin and put that? Help plz

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) || pev(ipev_movetype) != MOVETYPE_FLY)
        {
            
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) continue
        
        
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
        
}
    }

Thx
__________________


Last edited by arnaldo_silva; 08-28-2009 at 18:34.
arnaldo_silva is offline
 



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 15:06.


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