Advertisement
mforce

spamblock

Feb 21st, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.32 KB | None | 0 0
  1. #include <amxmodx>
  2.  
  3. public client_connect(id) {
  4.     new name[32]
  5.     get_user_info(id, "name", name, charsmax(name));
  6.    
  7.     if(contain(name, "NEW IP") != -1) {
  8.         new ip[32]; get_user_ip(id, ip, charsmax(ip);
  9.         log_to_file("spam.log", "Player %s[%s] kirugva", name, ip);
  10.         server_cmd("kick #%d ^"BOT^"", get_user_userid(id));
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement