HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <fakemeta>
  3.  
  4. #define PLUGIN "Egyszeru sebessegmero"
  5. #define VERSION "1.0"
  6. #define AUTHOR "DeRoiD"
  7.  
  8. public plugin_init() {
  9. register_plugin(PLUGIN, VERSION, AUTHOR)
  10. set_task(0.1, "kijelzo", 0, _, _, "b")
  11. }
  12. public kijelzo(){
  13. static celpont
  14. static Float:velocity[3]
  15. static Float:sebesseg
  16.  
  17. new players[32], szam
  18. get_players(players, szam, "c")
  19. for(new i; i<szam; i++){
  20. i = players[i]
  21. celpont = pev(i, pev_iuser1) == 4 ? pev(i, pev_iuser2) : i
  22. pev(celpont, pev_velocity, velocity)
  23. sebesseg = vector_length(velocity)
  24. set_hudmessage(0, 255, 0, -1.0, 0.70, 0, 6.0, 12.0)
  25. show_hudmessage(i, "Sebesseg : %3.2f",sebesseg)
  26. }
  27. }
  28. // Szinek
  29. // (0,0,255) KE'K
  30. // (0,255,0) ZOLD
  31. // (255,0,0) PIROS
  32. // (255,127,0) Narancssarga
  33. // (255,0,255) Rozsaszin
  34. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  35. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  36. */
  37.