Advertisement
ColdWar-Pawn

Block Grenades

Feb 16th, 2013
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.65 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include < amxmodx >
  4.  
  5. public plugin_init() {
  6.     register_plugin( "Block Fire In The Hole", "v0.0.1", "+ColdWar" )
  7.    
  8.     register_message( get_user_msgid( "TextMsg" ), "RegMsg_TextMsg" );
  9.     register_message( get_user_msgid( "SendAudio" ), "RegMsg_SendAudio")
  10. }
  11.  
  12.  
  13. public RegMsg_TextMsg(  )
  14. {
  15.     static szMessage[192];
  16.     get_msg_arg_string(5, szMessage, 191);
  17.    
  18.     if( equal(szMessage, "#Fire_in_the_hole") )
  19.         return 1;
  20.        
  21.     return 0;
  22. }
  23.  
  24. public RegMsg_SendAudio()
  25. {
  26.     static szMessage[20]
  27.     get_msg_arg_string( 2, szMessage, 20 )
  28.    
  29.     if( equal( szMessage[1], "!MRAD_FIREINHOLE" ) )
  30.         return 1;
  31.    
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement