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

[REQ] Need help with this Semiclip.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
valfarx
Member
Join Date: May 2011
Old 02-21-2012 , 18:14   [REQ] Need help with this Semiclip.
Reply With Quote #1

If some one could help me with this plugin.

http://forums.alliedmods.net/showthread.php?t=137980

This plugin work of this way. When u are near of another player you can see him but with transparency, and when he left you can see him solid. (But always u can across him coz is semiclip).

What i need?: That work Inverse: When you are near of a player u can see him solid, and when he go away u can see him with transparency in the distance.

Thx to anybody who can help me.

or i find this plugin i think is more easy. The problem with this plugin is it Bug the Nick names. U cant see nickname with this. If someone can fix this plugin
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 
plrTeam[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] && plrTeam[host] == plrTeam[ent])
        {
            
set_es(esES_SolidSOLID_NOT)
            
set_es(esES_RenderModekRenderTransAlpha)
            
set_es(esES_RenderAmt255)
        }
    }
}

FirstThink()
{
    for(new 
1<= maxplayersi++)
    {
        if(!
is_user_alive(i))
        {
            
plrSolid[i] = false
            
continue
        }
        
        
plrTeam[i] = get_user_team(i)
        
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
        
        if(
plrTeam[i] == plrTeam[id])
        {
            
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
        
}
    }


Last edited by valfarx; 02-22-2012 at 22:00.
valfarx is offline
Old 02-22-2012, 08:25
valfarx
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 02-28-2012, 17:27
valfarx
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
valfarx
Member
Join Date: May 2011
Old 03-10-2012 , 21:15   Re: [REQ] Need help with this Semiclip.
Reply With Quote #2

no one?????????????????
valfarx is offline
Reply



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 04:47.


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