HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2.  
  3. new PLUGIN[]="jatekos info mentes"
  4. new AUTHOR[]="GeTThere92"
  5. new VERSION[]="1.0"
  6.  
  7. public plugin_init()
  8. {
  9. // Register plugin
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. register_cvar("amx_logging", "1")
  12.  
  13. return PLUGIN_CONTINUE
  14. }
  15.  
  16. public client_connect(id)
  17. {
  18. if(get_cvar_num("amx_logging") == 1)
  19. {
  20. new username[32]
  21. new autohid[32]
  22. new ipaddress[32]
  23.  
  24. new logline[192]
  25. new filename[100]
  26.  
  27. new mapname[64]
  28. get_mapname( mapname, 63 )
  29.  
  30. new CurrentTime[9]
  31. get_time("%S:%H:%M",CurrentTime,8)
  32.  
  33.  
  34. get_time("addons/jatekosinfok.log", filename, 99)
  35.  
  36. get_user_name(id, username, 31)
  37. get_user_authid(id, autohid, 31)
  38. get_user_ip(id, ipaddress, 31)
  39.  
  40. format(logline, 191, "Neve: %s Steam idje: %s Ipje: %s", username, autohid, ipaddress, CurrentTime, mapname)
  41. log_to_file(filename, logline)
  42. }
  43.  
  44. return PLUGIN_HANDLED
  45. }
  46. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  47. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  48. */