Advertisement
ColdWar-Pawn

Random Glow On Spawn

Mar 15th, 2013
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.68 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include < amxmodx >
  4. #include < engine >
  5. #include < hamsandwich >
  6.  
  7. public plugin_init()
  8. {
  9.     register_plugin( "Random Glow", "v0.0.1", "+ColdWar" )
  10.     RegisterHam( Ham_Spawn, "player", "Ham_PlayerSpawn_Post", 1 );
  11. }
  12.  
  13. public Ham_PlayerSpawn_Post( client )
  14. {
  15.     new Float: g_flGlowColor[ 3 ];
  16.    
  17.     for( new i = 0 ; i < sizeof g_flGlowColor ; i ++ )
  18.         g_flGlowColor[ i ] = random_float( 0.0, 255.0 );
  19.    
  20.     entity_set_vector( client, EV_VEC_rendercolor, g_flGlowColor );
  21.     entity_set_int( client, EV_INT_renderfx, kRenderFxGlowShell );
  22.     entity_set_int( client, EV_INT_rendermode, kRenderNormal );
  23.     entity_set_float( client, EV_FL_renderamt, 84.0 );
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement