Advertisement
RanAway

[ Pawn - utility ] block textmsg

Oct 4th, 2024 (edited)
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.04 KB | None | 0 0
  1. //-------------------- Includes --------------------//
  2. #include < amxmodx >
  3.  
  4. //-------------------- List of commands to block --------------------//
  5. new msglist[][] =
  6. {
  7.     "#Game_connected",
  8.     "#Game_join_ct",
  9.     "#Game_scoring",
  10.     "#Game_will_restart_in",
  11.     "#Game_will_restart_in_console",
  12.     "#Round_Draw",
  13.     "#Spec_Mode3",
  14.     "#Game_join_terrorist",
  15.     "#Game_teammate_attack",
  16.     "#Killed_Teammate",
  17.     "#Game_teammate_kills",
  18.     "#Auto_Team_Balance_Next_Round",
  19.     "#Game_join_terrorist_auto",
  20.     "#Spec_NoTarget",
  21.     "#Game_disconnected",
  22.     "#Spec_Mode2",
  23.     "#Game_Commencing",
  24.     "#Killed_Hostage",
  25.     "#Terrorists_Win",
  26.     "#Weapon_Cannot_Be_Dropped",
  27.     "#Hostages_Not_Rescued",
  28.     "#Target_Saved",
  29.     "#Game_unknown_command",
  30.     "#Spec_Mode4",
  31.     "#Bomb_Planted",
  32.     "#Command_Not_Available",
  33.     "#Got_defuser",
  34.     "#Switch_To_BurstFire",
  35.     "#Switch_To_SemiAuto",
  36.     "#Game_vote_usage",
  37.     "#Cannot_Vote_Map",
  38.     "#Wait_3_Seconds",
  39.     "#Votes",
  40.     "#Game_votemap_usage",
  41.     "#C4_Plant_At_Bomb_Spot",
  42.     "#Game_bomb_drop",
  43.     "#Got_bomb",
  44.     "#Only_1_Team_Change",
  45.     "#Cannot_Vote_Need_More_People",
  46.     "#Cannot_Vote_With_Less_Than_Three",
  47.     "#Spec_Mode5",
  48.     "#Spec_Mode6",
  49.     "#CTs_Win",
  50.     "#Cannot_Carry_Anymore",
  51.     "#Already_Have_Kevlar",
  52.     "#Already_Have_Kevlar_Helmet",
  53.     "#Game_bomb_pickup",
  54.     "#C4_Plant_Must_Be_On_Ground",
  55.     "#Not_Enough_Money",
  56.     "#C4_Defuse_Must_Be_On_Ground",
  57.     "#Defusing_Bomb_Without_Defuse_Kit",
  58.     "#Target_Bombed",
  59.     "#C4_Arming_Cancelled",
  60.     "#Game_join_ct_auto",
  61.     "#Terrorists_Not_Escaped",
  62.     "#VIP_Not_Escaped",
  63.     "#Cstrike_Tutor_Round_Over",
  64.     "#Injured_Hostage",
  65.     "#Already_Have_Kevlar_Bought_Helmet",
  66.     "#Alias_Not_Avail",
  67.     "#Cstrike_Already_Own_Weapon",
  68.     "#Terrorists_Full"
  69. }
  70.  
  71. //-------------------- Plugin init --------------------//
  72. public plugin_init() register_message( get_user_msgid( "TextMsg" ), "blockmsg" )
  73.  
  74. //-------------------- blockmsg --------------------//
  75. public blockmsg()
  76. {
  77.     new block[ 32 ]
  78.     get_msg_arg_string( 2, block, 31 )
  79.  
  80.     for( new i = 0; i < sizeof( msglist ); i++ ) if( equal( block, msglist[ i ] ) ) return 1
  81.  
  82.     return 0
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement