AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [easy HELP] invisible code (https://forums.alliedmods.net/showthread.php?t=274499)

Kosidone 11-08-2015 17:21

[easy HELP] invisible code
 
solved

redivcram 11-08-2015 19:13

Re: [easy HELP] invisible code
 
Highlight the second one, Hold ctrl and press C
Find a suitable line in the first one, then click and put a spacing, hold ctrl and press V

OciXCrom 11-09-2015 08:44

Re: [easy HELP] invisible code
 
Also, don't forget to use the mouse.

Kosidone 11-09-2015 08:56

Re: [easy HELP] invisible code
 
stop trolling ~_~
i'm not the best at pawn . . .
i'm just ask for help
never mind

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 prufen 

    
entity_set_float(iEntEV_FL_nextthinkget_gametime() + 0.1)
    new 
iEnt 
    iEnt 
create_entity("info_target"
    
set_pev(iEntpev_classname"check_speed"
    
set_pev(iEntpev_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) / 
                        
if( iInvisibility 
                        { 
                            
iInvisibility 
                        

                        
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 


Code:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Undefined symbol "set_pev" on line 24
Warning: Expression has no effect on line 24
Error: Expected token: ";", but found ")" on line 24
Error: Invalid expression, assumed zero on line 24
Error: Too many error messages on one line on line 24

Compilation aborted.
4 Errors.
Could not locate output file C:\My Plugins\Untitled.amx (compile failed).

. . .

wickedd 11-09-2015 09:09

Re: [easy HELP] invisible code
 
You need
Code:

#include <fakemeta>

Kosidone 11-09-2015 16:29

Re: [easy HELP] invisible code
 
thanks dude


All times are GMT -4. The time now is 18:06.

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