Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include <amxmodx>
- #include <engine>
- #include <fakemeta_util>
- #define PLUGIN "Body Color Change when jump"
- #define VERSION "1.0"
- #define AUTHOR "author"
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- // Add your code here...
- }
- public client_PreThink( iPlayer )
- {
- if( !is_user_alive( iPlayer ))
- return;
- if( get_user_button( iPlayer ) & IN_USE ) {
- if( get_entity_flags( iPlayer ) & FL_ONGROUND ) return
- static Float: iVelocity[ 3 ]
- entity_get_vector( iPlayer, EV_VEC_velocity, iVelocity )
- if( iVelocity[ 2 ] < 0 ) {
- iVelocity[ 2 ] = ( iVelocity[ 2 ] + 70.0 < -100 ) ? iVelocity[ 2 ] + 07.0 : -100.0
- entity_set_vector( iPlayer, EV_VEC_velocity, iVelocity )
- fm_set_rendering( iPlayer, kRenderFxGlowShell, random_num( 0, 255 ), random_num( 0, 255 ), random_num( 0, 255 ), kRenderNormal, 25 )
- }
- }
- else if( get_user_button( iPlayer ) & ~IN_USE ) fm_set_rendering( iPlayer )
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement