HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. /* Plugin generated by AMXX-Studio */
  2. #include <amxmodx>
  3. #include <amxmisc>
  4.  
  5. #define PLUGIN "ip tabla"
  6. #define AUTHOR "HoBaK"
  7. #define STR_LEN 32
  8. public plugin_init() {
  9. register_plugin("Show IP Steam Id and Map", "0.1", "HoBaK")
  10. register_concmd("amx_iptabla", "show", ADMIN_ALL, "List with player nick,ip,steam id and map to moment.")
  11. }
  12. public show(id)
  13. {
  14. new players[32], num
  15. get_players(players, num)
  16. console_print(id, "=============Jelenlegi jatekosok============")
  17. console_print(id, "")
  18. console_print(id, " - Nevek - IP cimek - Steam ID - Csapat")
  19.  
  20. for(new i = 0; i < num; i++)
  21. {
  22. new name[32];
  23. new szIp[32];
  24. new steamid[32];
  25. new team[32];
  26. get_user_name(players[i], name, charsmax(name))
  27. get_user_ip(players[i], szIp, charsmax(szIp), 0)
  28. get_user_authid(players[i], steamid , charsmax(steamid))
  29. get_user_team(players[i], team, charsmax(team))
  30. console_print(id, " - %s - %s - %s - %s", name, szIp, steamid, team)
  31. }
  32. console_print(id, "============Szerver Informacio============")
  33. new Time = get_user_time(id)
  34. new timeleft = get_timeleft()
  35. new mapname[32];
  36. get_mapname(mapname, 31)
  37. console_print(id, "Jelenlegi map: %s", mapname)
  38. console_print(id, "neked %d olesed es %d halalod van",get_user_frags(id), get_user_deaths(id) )
  39. console_print(id, "jatszott ido a szerveren %d:%02d min",(Time / 60), (Time % 60))
  40. console_print(id, "Ido lejarat :%d:%02d min",(timeleft / 60), (timeleft % 60))
  41. console_print(id, "Online Jatekosok : %d.", num);
  42. console_print(id, "============Szerver Informacio============")
  43. console_print(id, "")
  44. console_print(id, "Jo jatekot!")
  45.  
  46. return PLUGIN_HANDLED
  47. }
  48.