Raised This Month: $ Target: $400
 0% 

My semiclip code don't work


Post New Thread Reply   
 
Thread Tools Display Modes
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
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-07-2011 , 15:00   Re: My semiclip code don't work
Reply With Quote #2

Why would it work ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 08-07-2011 , 15:04   Re: My semiclip code don't work
Reply With Quote #3

It doesn't do enithig. It don't work the renderig, the main semiclip. Try it
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-07-2011 , 15:06   Re: My semiclip code don't work
Reply With Quote #4

Don't need to try it to see it doesn't work.
What is "two" ???
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 08-07-2011 , 15:08   Re: My semiclip code don't work
Reply With Quote #5

one is the id of the first player, two is the id of the second player

Last edited by m0skVi4a; 08-07-2011 at 15:13.
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-07-2011 , 16:11   Re: My semiclip code don't work
Reply With Quote #6

Since when PreThink is passing 2 players indexes ?

This gonna makes your life easier : http://forums.alliedmods.net/showthread.php?t=163322
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 08-08-2011 , 05:57   Re: My semiclip code don't work
Reply With Quote #7

Dude. This is for source. And i want to use my code, because is much more simpler and i want to add it to my plugin that is very big.
Can you help me to fix it
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-08-2011 , 08:02   Re: My semiclip code don't work
Reply With Quote #8

Quote:
Originally Posted by m0skVi4a View Post
Dude. This is for source. And i want to use my code, because is much more simpler and i want to add it to my plugin that is very big.
Can you help me to fix it
Nothing in this thread or even this whole section is for source games. Scripting for source games is done with SourceMod.
__________________
fysiks is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 08-08-2011 , 06:19   Re: My semiclip code don't work
Reply With Quote #9

That is for HL 1 not source !
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 08-08-2011 , 12:07   Re: My semiclip code don't work
Reply With Quote #10

Yes my problem is for HL1, Not source
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
Reply


Thread Tools
Display Modes

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