Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Semiclip
#9
Kardeşim forumda istediğin şey yok herhalde birazsonra bulursam atarım.

- - - - - - - - - -

Sanırım bu işini görür. Repimi isterim Big Grin

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_RenderAmt85)
        }
    }
}

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

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

[/i][/i][/i][/i][/i][/i][/i][/i]
Reply


Messages In This Thread
Semiclip - by MAJESTIC GAMING - 23-04-15, 19:43
Cevap: Semiclip - by XJohnstoNX - 23-04-15, 20:16
Cevap: Semiclip - by MAJESTIC GAMING - 23-04-15, 20:36
Cevap: Semiclip - by Kaymaklii - 24-04-15, 20:44
Cevap: Semiclip - by MAJESTIC GAMING - 25-04-15, 02:14
Cevap: Semiclip - by MAJESTIC GAMING - 27-04-15, 23:50
Cevap: Semiclip - by MAJESTIC GAMING - 29-04-15, 12:47
Cevap: Semiclip - by MAJESTIC GAMING - 04-05-15, 09:46
Cevap: Semiclip - by Foreve - 13-05-15, 21:27
Cevap: Semiclip - by MAJESTIC GAMING - 13-05-15, 22:33
Cevap: Semiclip - by MAJESTIC GAMING - 13-05-15, 22:53
Cevap: Semiclip - by BYHAZARD7 - 17-07-16, 17:38
Cevap: Semiclip - by wqrannis1907xxx - 05-08-16, 12:48
Cevap: Semiclip - by marvel1905 - 05-01-17, 01:23
Cevap: Semiclip - by crunch98 - 09-01-17, 20:47

Foruma Atla:


Users browsing this thread: 1 Guest(s)