HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. /*
  2.   Fordította: BBk - Death of Legend
  3. */
  4.  
  5. #include <amxmodx>
  6. #include <cstrike>
  7.  
  8.  
  9. new const plugin[] = "Magamrol Info"
  10. new const version[] = "1.1"
  11. new const author[] = "xer'"
  12.  
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin(plugin,version,author);
  17. register_clcmd("say /en","commandaboutme");
  18. register_clcmd("say_team /en","commandaboutme");
  19. set_task(30.0, "plugin_info" ,_ ,_ ,_ , "b");
  20. }
  21.  
  22. public commandaboutme(id)
  23. {
  24. new szName[32], szIp[32], szAuth[32], szPing, szLoss;
  25. get_user_name(id, szName, 31);
  26. get_user_ip(id, szIp, 31);
  27. get_user_authid(id, szAuth, 31);
  28. get_user_ping(id, szPing, szLoss);
  29.  
  30. client_print(id, print_chat,"%L",LANG_PLAYER,"NIAP", szName, szIp, szAuth);
  31.  
  32. if(!is_user_alive(id))
  33. {
  34. client_print(id, print_chat, "%L", LANG_PLAYER,"NOT_ALIVE")
  35. }
  36. new szhp, szarmor, szfrags, szdeaths, szmoney;
  37. szhp = get_user_health(id);
  38. szarmor = get_user_armor(id);
  39. szfrags = get_user_frags(id);
  40. szdeaths = get_user_deaths(id);
  41. szmoney = cs_get_user_money(id);
  42.  
  43. client_print(id, print_chat,"%L",LANG_PLAYER,"HAFDM", szhp, szarmor, szfrags, szdeaths, szPing, szmoney);
  44.  
  45. return PLUGIN_HANDLED;
  46. }
  47.  
  48. public plugin_info()
  49. {
  50. client_print(0, print_chat, "%L", LANG_PLAYER, "PLUGIN_INFO");
  51. }