Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-------------------- Includes --------------------//
- #include < amxmodx >
- //-------------------- List of commands to block --------------------//
- new msglist[][] =
- {
- "#Game_connected",
- "#Game_join_ct",
- "#Game_scoring",
- "#Game_will_restart_in",
- "#Game_will_restart_in_console",
- "#Round_Draw",
- "#Spec_Mode3",
- "#Game_join_terrorist",
- "#Game_teammate_attack",
- "#Killed_Teammate",
- "#Game_teammate_kills",
- "#Auto_Team_Balance_Next_Round",
- "#Game_join_terrorist_auto",
- "#Spec_NoTarget",
- "#Game_disconnected",
- "#Spec_Mode2",
- "#Game_Commencing",
- "#Killed_Hostage",
- "#Terrorists_Win",
- "#Weapon_Cannot_Be_Dropped",
- "#Hostages_Not_Rescued",
- "#Target_Saved",
- "#Game_unknown_command",
- "#Spec_Mode4",
- "#Bomb_Planted",
- "#Command_Not_Available",
- "#Got_defuser",
- "#Switch_To_BurstFire",
- "#Switch_To_SemiAuto",
- "#Game_vote_usage",
- "#Cannot_Vote_Map",
- "#Wait_3_Seconds",
- "#Votes",
- "#Game_votemap_usage",
- "#C4_Plant_At_Bomb_Spot",
- "#Game_bomb_drop",
- "#Got_bomb",
- "#Only_1_Team_Change",
- "#Cannot_Vote_Need_More_People",
- "#Cannot_Vote_With_Less_Than_Three",
- "#Spec_Mode5",
- "#Spec_Mode6",
- "#CTs_Win",
- "#Cannot_Carry_Anymore",
- "#Already_Have_Kevlar",
- "#Already_Have_Kevlar_Helmet",
- "#Game_bomb_pickup",
- "#C4_Plant_Must_Be_On_Ground",
- "#Not_Enough_Money",
- "#C4_Defuse_Must_Be_On_Ground",
- "#Defusing_Bomb_Without_Defuse_Kit",
- "#Target_Bombed",
- "#C4_Arming_Cancelled",
- "#Game_join_ct_auto",
- "#Terrorists_Not_Escaped",
- "#VIP_Not_Escaped",
- "#Cstrike_Tutor_Round_Over",
- "#Injured_Hostage",
- "#Already_Have_Kevlar_Bought_Helmet",
- "#Alias_Not_Avail",
- "#Cstrike_Already_Own_Weapon",
- "#Terrorists_Full"
- }
- //-------------------- Plugin init --------------------//
- public plugin_init() register_message( get_user_msgid( "TextMsg" ), "blockmsg" )
- //-------------------- blockmsg --------------------//
- public blockmsg()
- {
- new block[ 32 ]
- get_msg_arg_string( 2, block, 31 )
- for( new i = 0; i < sizeof( msglist ); i++ ) if( equal( block, msglist[ i ] ) ) return 1
- return 0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement