Advertisement
ejdrienxd

Untitled

Jan 10th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "Dane Graczy"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Mysiensky"
  7.  
  8. public plugin_init() {
  9. register_plugin(PLUGIN, VERSION, AUTHOR)
  10. }
  11.  
  12. public client_authorized(id)
  13. {
  14. if(is_user_bot(id) || is_user_hltv(id)) return PLUGIN_CONTINUE;
  15.  
  16. new Name[33],ip[16],SteamID[33]
  17. new file[32],Time[7]
  18. get_user_name(id, Name, 32)
  19. get_user_ip(id, ip, 15, 1)
  20. get_user_authid(id , SteamID , 32)
  21. get_time("%d%m%y",Time,8)
  22. format(file,31,"Dane_graczy_%s.log",Time)
  23. log_to_file(file," Nick: %s | STEAMID: %s | IP: %s ^n",Name,SteamID,ip)
  24. return PLUGIN_CONTINUE
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement