HLMOD.HU Forrás Megtekintés
- www.hlmod.hu#include <amxmodx>
#include <fakemeta>
#define PLUGIN "Egyszeru sebessegmero"
#define VERSION "1.0"
#define AUTHOR "DeRoiD"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(0.1, "kijelzo", 0, _, _, "b")
}
public kijelzo(){
static celpont
static Float:velocity[3]
static Float:sebesseg
new players[32], szam
get_players(players, szam, "c")
for(new i; i<szam; i++){
i = players[i]
celpont = pev(i, pev_iuser1) == 4 ? pev(i, pev_iuser2) : i
pev(celpont, pev_velocity, velocity)
sebesseg = vector_length(velocity)
set_hudmessage(0, 255, 0, -1.0, 0.70, 0, 6.0, 12.0)
show_hudmessage(i, "Sebesseg : %3.2f",sebesseg)
}
}
// Szinek
// (0,0,255) KE'K
// (0,255,0) ZOLD
// (255,0,0) PIROS
// (255,127,0) Narancssarga
// (255,0,255) Rozsaszin
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
*/