HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #define STR_LEN 32
  4. public plugin_init() {
  5. register_plugin("Steam_ip_map_name", "0.1", "HoBaK")
  6. register_concmd("amx_info", "show", ADMIN_ALL, "Megmutatja az ip címet nevet steam id-t és pár szerver infót.")
  7. }
  8. public show(id)
  9. {
  10. new players[32], num
  11. get_players(players, num)
  12. console_print(id, "=============Játékosok a szerveren============")
  13. console_print(id, "")
  14. console_print(id, " - Név - IP cím - Steam ID - Team")
  15.  
  16. for(new i = 0; i < num; i++)
  17. {
  18. new name[32];
  19. new szIp[32];
  20. new steamid[32];
  21. new team[32];
  22. get_user_name(players[i], name, charsmax(name))
  23. get_user_ip(players[i], szIp, charsmax(szIp), 0)
  24. get_user_authid(players[i], steamid , charsmax(steamid))
  25. get_user_team(players[i], team, charsmax(team))
  26. console_print(id, " - %s - %s - %s - %s", name, szIp, steamid, team)
  27. }
  28. console_print(id, "============Szerver Információ============")
  29. new Time = get_user_time(id)
  30. new timeleft = get_timeleft()
  31. new mapname[32];
  32. get_mapname(mapname, 31)
  33. console_print(id, "Pálya : %s", mapname)
  34. console_print(id, "Van %d ölésed és %d halálod.",get_user_frags(id), get_user_deaths(id) )
  35. console_print(id, "Ennyi ideje vagy fent a szerveren! %d:%02d perce",(Time / 60), (Time % 60))
  36. console_print(id, "Hátralévő idő: :%d:%02d perc",(timeleft / 60), (timeleft % 60))
  37. console_print(id, "Online játékosok: %d.", num);
  38. console_print(id, "============Szerver Információ============")
  39. console_print(id, "")
  40. console_print(id, "Magyarosítást csinálta Raiz3n")
  41.  
  42. return PLUGIN_HANDLED
  43. }
  44.