Advertisement
iXdoctor

Block Ip.

Jul 12th, 2014
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.46 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include < amxmodx >
  4.  
  5. new const szBlockMessage [ ] = { "Server cannot recive information from the plugin ^"PLUGIN NAME^" because its not your plugin !" }
  6.  
  7. new const szMyIp [ ] = { "1.1.1.1:19999" }
  8.  
  9. public plugin_init()
  10. {
  11.     if( !equali( BlockOtherIps(), szMyIp ) )
  12.         set_fail_state( szBlockMessage );
  13. }
  14.  
  15. stock BlockOtherIps()
  16. {
  17.     static szIp[ 21 ];
  18.    
  19.     get_user_ip( 0, szIp, charsmax( szIp ) );
  20.    
  21.     return szIp;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement