hlmod.hu
https://hlmod.hu/

steam_id LOG
https://hlmod.hu/viewtopic.php?f=9&t=9546
Oldal: 1 / 1

Szerző:  Anonymous1337 [ 2013.07.16. 11:30 ]
Hozzászólás témája:  steam_id LOG

Mi lehet ebben a hiba? Kérném hogy valaki javítsa a hibát.

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. new PLUGIN[]="Steam_id_Mentese"
  4. new AUTHOR[]="author"
  5. new VERSION[]="1"
  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 steamid[32]
  22.  
  23. new logline[192]
  24. new filename[100]
  25.  
  26. new mapname[64]
  27. get_mapname( mapname, 63 )
  28.  
  29. new CurrentTime[9]
  30. get_time("%H:%M:%S",CurrentTime,8)
  31.  
  32.  
  33. get_time("addons/amxmodx/steamid_mentes.log", filename, 99)
  34.  
  35. get_user_name(id, username, 31)
  36. get_user_steamid(id, steamid, 31)
  37.  
  38. format(logline, 191, "Neve: %s | STEAM_ID: %s | Jelenlegi ido: %s | Palya: %s", username, steamid, CurrentTime, mapname)
  39. log_to_file(filename, logline)
  40. }
  41.  
  42. return PLUGIN_HANDLED
  43. }


Előre is köszönöm!

Üdv.

Szerző:  CrB [ 2013.07.16. 11:42 ]
Hozzászólás témája:  Re: steam_id LOG

Próbáld
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. #include <amxmodx>
  3.  
  4. new PLUGIN[]="Steam_id_Mentese"
  5. new AUTHOR[]="author"
  6. new VERSION[]="1"
  7.  
  8. public plugin_init()
  9. {
  10. // Register plugin
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. register_cvar("amx_logging", "1")
  13.  
  14. return PLUGIN_CONTINUE
  15. }
  16.  
  17. public client_connect(id)
  18. {
  19. if(get_cvar_num("amx_logging") == 1)
  20. {
  21. new username[32]
  22. new steamid[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("%H:%M:%S",CurrentTime,8)
  32.  
  33.  
  34. get_time("addons/amxmodx/steamid_mentes.log", filename, 99)
  35.  
  36. get_user_name(id, username, 31)
  37. get_user_authid(id, steamid ,31)
  38.  
  39. format(logline, 191, "Neve: %s | STEAM_ID: %s | Jelenlegi ido: %s | Palya: %s", username, steamid, CurrentTime, mapname)
  40. log_to_file(filename, logline)
  41. }
  42.  
  43. return PLUGIN_HANDLED
  44. }
  45.  

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/