Advertisement
ColdWar-Pawn

Spectating Test

Mar 27th, 2013
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.54 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include < amxmodx >
  4. #include < engine >
  5.  
  6.  
  7. public plugin_init()
  8. {
  9.     register_plugin( "Test Spectating Target", "v1.0", "+ColdWar" )
  10. }
  11.  
  12. public client_PreThink( client )
  13. {
  14.     if( is_user_alive( client ) )
  15.         return;
  16.    
  17.     new target = entity_get_int( client, EV_INT_iuser2 );
  18.    
  19.     if( !target )
  20.         return;
  21.        
  22.     new szName[ 32 ];
  23.     get_user_name( target, szName, sizeof szName - 1 );
  24.    
  25.     set_hudmessage( 85, 0, 255, -1.0, 0.68, 0, 6.0, 12.0 )
  26.     show_hudmessage( client, "Your spectating %s.", szName )
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement