| 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(PLUGIN, VERSION, AUTHOR) register_think("check_speed", "TVisibility") }
public TVisibility( iEnt ) // Geschwindigkeit prufen { entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 0.1) new iEnt iEnt = create_entity("info_target") set_pev(iEnt, pev_classname, "check_speed") set_pev(iEnt, pev_nextthink, get_gametime() + 0.1) new iInvisibility new players[32], pnum, tempid,Float:fVecVelocity[3], iSpeed; get_players(players, pnum, "a"); for( new i; i<pnum; i++ ) { tempid = players[i]; switch( cs_get_user_team(tempid) ) { case CS_TEAM_T: { if( get_user_weapon(tempid) == CSW_KNIFE ) { entity_get_vector(tempid, EV_VEC_velocity, fVecVelocity) iSpeed = floatround( vector_length(fVecVelocity) ) if( iSpeed <255) // und langsamer als 255 ist { iInvisibility = iSpeed - (256 - iSpeed) / 3 if( iInvisibility < 0 ) { iInvisibility = 0 } set_user_rendering(tempid, kRenderFxNone, 0, 0, 0, kRenderTransAlpha,iInvisibility) set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 12.0) show_hudmessage(0, "YOU ARE INVISIBLE") } else { set_user_rendering(tempid, kRenderFxNone, 0, 0, 0, kRenderNormal, 0) } } else { set_user_rendering(tempid, kRenderFxNone, 0, 0, 0, kRenderNormal, 0) } } 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).
. . .
|