Raised This Month: $ Target: $400
 0% 

My semiclip code don't work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 08-07-2011 , 14:54   My semiclip code don't work
Reply With Quote #1

Hello.
This is my simple semiclip plugin, but it doesn't work
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define DISTANCE 220

new g_on
new Float:g_fOrigin[33][3];

public 
plugin_init() 
{
    
register_plugin("Semiclip""1.0""m0skVi4a")
    
    
g_on register_cvar("semiclip_on""1")
    
    
register_forwardFM_PlayerPreThink"fwdPlayerPreThink" );
}

public 
fwdPlayerPreThink(onetwo
{
    if(
get_pcvar_num(g_on))
    {
        if(
get_user_team(one) == get_user_team(two)) 
        {
            if(
get_distance_f(g_fOrigin[one], g_fOrigin[two] ) <= DISTANCE && one != two)
            {
                
set_pev(onetwopev_solidSOLID_BBOX)
                
set_es(oneES_RenderModekRenderTransAlpha );
                
set_es(oneES_RenderAmt85 );
                
set_es(twoES_RenderModekRenderTransAlpha );
                
set_es(twoES_RenderAmt85 );
            }
            else
            {
                
set_pev(onetwopev_solidSOLID_NOT)
            }
        }
    }

Where is the problem
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
 



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 01:30.


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