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

Invisible when stand still [Furien Code from Connor]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-04-2012 , 04:41   Invisible when stand still [Furien Code from Connor]
Reply With Quote #1

Hello everybody,
I tried to extract the Invisibility Code from Connors Furien to make it a standalone Plugin, but it doesnt work. When I stand still, I'm still visible.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <engine>
#include <cstrike>
#include <fun>

#define PLUGIN "FURiEN ViSiBiLiTY"
#define VERSION "1.0"
#define AUTHOR "Kia Armani | ConnorMcLeod"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_think("check_speed""TVisibility")
}

public 
TVisibilityiEnt // Geschwindigkeit prüfen
{
    
entity_set_float(iEntEV_FL_nextthinkget_gametime() + 0.1)
    
    new 
iInvisibility
    
new players[32], pnumtempid,Float:fVecVelocity[3], iSpeed;
    
get_players(playerspnum"a"); 
    for( new 
ii<pnumi++ ) 
    { 
        
tempid players[i];
        switch( 
cs_get_user_team(tempid) )
        {    
            case 
CS_TEAM_T:
            {
                if( 
get_user_weapon(tempid) == CSW_KNIFE )
                {
                    
entity_get_vector(tempidEV_VEC_velocityfVecVelocity)
                    
iSpeed floatroundvector_length(fVecVelocity) )
                    if( 
iSpeed <255// und langsamer als 255 ist
                    
{
                        
iInvisibility iSpeed - (256 iSpeed) / 3
                        
if( iInvisibility )
                        {
                            
iInvisibility 0
                        
}
                        
set_user_rendering(tempidkRenderFxNone000kRenderTransAlpha,iInvisibility)
                        
set_hudmessage(02550, -1.0, -1.006.012.0)
                        
show_hudmessage(0"YOU ARE INVISIBLE")
                        
                        
                    }
                    else
                    {
                        
set_user_rendering(tempidkRenderFxNone000kRenderNormal0
                    }
                }
                else
                {
                    
set_user_rendering(tempidkRenderFxNone000kRenderNormal0)
                }
            }
            case 
CS_TEAM_CT:
            {
                return 
PLUGIN_HANDLED
            
}
            
        }
    }
    return 
PLUGIN_HANDLED

It compiles fine, but it doesn't work on my server. Anyone know what I did wrong?

Greetz,
Kia.
Kia is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-05-2012 , 05:43   Re: Invisible when stand still [Furien Code from Connor]
Reply With Quote #2

Anyone can help? :/
Kia is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-05-2012 , 06:03   Re: Invisible when stand still [Furien Code from Connor]
Reply With Quote #3

Ok, found a solution, forget to declare what "iEnt" is.

PHP Code:
new iEnt
    iEnt 
create_entity("info_target")
    
set_pev(iEntpev_classname"check_speed")
    
set_pev(iEntpev_nextthinkget_gametime() + 0.1
Kia is offline
SaNdMaN_SvK
New Member
Join Date: Jan 2014
Old 01-03-2014 , 13:07   Re: Invisible when stand still [Furien Code from Connor]
Reply With Quote #4

Kia Please could you give SMA here from the plugin?
SaNdMaN_SvK is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 01-03-2014 , 13:40   Re: Invisible when stand still [Furien Code from Connor]
Reply With Quote #5

Search for my Furien V64.
__________________
Kia is offline
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 01-03-2014 , 14:09   Re: Invisible when stand still [Furien Code from Connor]
Reply With Quote #6

I have furien server and i had problems with invisibility.
Try to use fm_ function for rendering..
if not work, verify witch plugin use set_user_rendering (semiclip plugin ex).

Or entity is invalid...
PHP Code:
new iEnt
    iEnt 
create_entity("info_target")
    
set_pev(iEntpev_classname"check_speed")
    
set_pev(iEntpev_nextthinkget_gametime() + 0.1
->
PHP Code:

new iEnt = -1
    iEnt 
create_entity("info_target")
    if( 
pev_valid(iEnt) ) {
         
set_pev(iEntpev_classname"check_speed")
         
set_pev(iEntpev_nextthinkget_gametime() + 0.1)
         
register_think...bla.
     }
     else
         
set_task(0.1"bla",0_0"b" ); 

Last edited by DWIGHTpN; 01-03-2014 at 14:10.
DWIGHTpN is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 01-03-2014 , 14:16   Re: Invisible when stand still [Furien Code from Connor]
Reply With Quote #7

My code is actually working.
__________________
Kia is offline
Old 01-03-2014, 19:07
hornet
This message has been deleted by hornet. Reason: Problem solved ?
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 05:53.


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