mforce

NO HLTV and ID_LAN

Oct 29th, 2015
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.46 KB | None | 0 0
  1. #include <amxmodx>
  2.  
  3. #define PLUGIN "NO HLTV and ID_LAN"
  4. #define VERSION "1.0"
  5. #define AUTHOR "mforce"
  6.  
  7.  
  8. public plugin_init() {
  9.     register_plugin(PLUGIN, VERSION, AUTHOR)
  10. }
  11.  
  12. public client_putinserver(id) {
  13.     if(!is_user_bot(id)) {
  14.         new steamid[32]; get_user_authid(id, steamid, charsmax(steamid));
  15.    
  16.         if(equal(steamid, "HLTV") || containi(steamid, "_ID_LAN") != -1)) {
  17.             server_cmd("kick #%d ^"Tolts le ujabb klienst!^"", get_user_userid(id))
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment