Rejack

Block Hud's

May 24th, 2013 (edited)
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.47 KB | None | 0 0
  1. #include < amxmodx >
  2.  
  3. public plugin_init()
  4. {
  5.     register_event( "ResetHUD", "evResetHud", "b" );
  6.    
  7.     register_message( get_user_msgid( "HideWeapon" ), "MsgHideWeapon" );
  8. }
  9.  
  10. public evResetHud( client )
  11. {
  12.     message_begin( MSG_ONE, get_user_msgid( "HideWeapon" ), _,  client );
  13.    
  14.     write_byte( (1<<1) | (1<<3) | (1<<4) | (1<<5) );
  15.    
  16.     message_end( );
  17. }
  18.  
  19. public MsgHideWeapon( )
  20. {
  21.     set_msg_arg_int(1, ARG_BYTE, get_msg_arg_int(1) | (1<<1) | (1<<3) | (1<<4) | (1<<5) )
  22. }
Advertisement
Add Comment
Please, Sign In to add comment