Raised This Month: $ Target: $400
 0% 

Invisibility


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Pur3Biatch
Junior Member
Join Date: Jun 2011
Location: Czech Republic
Old 08-10-2011 , 11:10   Invisibility
Reply With Quote #1

Hi, i want to make invisibility like in Furien Mod for all, but it's still not working.
PHP Code:
#include <amxmodx>
#include <engine>
#include <fun>
#include <fakemeta>

#define PLUGIN "Invisibility"
#define VERSION "1.0"
#define AUTHOR "ConnorMcLeod"

new g_iInvisFactor 1

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    new 
iEnt
    iEnt 
create_entity("info_target")
    
set_pev(iEntpev_classname"check_speed")
    
set_pev(iEntpev_nextthinkget_gametime() + 0.1)
    
register_think("check_speed""Set_Furiens_Visibility")
}

public 
Set_Furiens_Visibility(iEnt)
{
    
entity_set_float(iEntEV_FL_nextthinkget_gametime() + 0.1)

    new 
iPlayers[32], iNumFloat:fVecVelocity[3], iSpeed

    get_players
(iPlayersiNum"a")

    for(new 
iiNumi++)
    {
        if(
get_user_weapon(i) == CSW_KNIFE)
        {
            
entity_get_vector(iEV_VEC_velocityfVecVelocity)
            
iSpeed floatround(vector_length(fVecVelocity))
            if(
iSpeed g_iInvisFactor*255)
            {
                
set_user_rendering(ikRenderFxNone000kRenderTransAlphaiSpeed/g_iInvisFactor)
            }
            else
            {
                
set_user_rendering(ikRenderFxNone000kRenderNormal0)
            }
        }
        else
        {
            
set_user_rendering(ikRenderFxNone000kRenderNormal0)
        }
    }

You can not do anything to help me, please?

Excuse my English -> Google Translator :d
Pur3Biatch is offline
Send a message via Skype™ to Pur3Biatch
 



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 03:25.


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