Unit plugin thingy..
Isnt there a plugin wich calculates units between two blocks, or something similiar to that? Cus if there is, could someone post a link to get it?
Thx
longjumps plugin made by PrEn1uMz
sorry i don't have the .sma :/
btw for the plugin: type in console "kreedzmod_longjumps_menu" :)
[ Edited Fri Jan 26 2007, 10:14PM ]
how can i show the menu in game ??? this "kreedzmod_longjumps_menu" doesn't work :(
how can i show the menu in game ??? this "kreedzmod_longjumps_menu" doesn't work :(
Write "amx_plugins" in the console and see if it has been loaded correctly.
That command should be correct.
longjumps plugin made by PrEn1uMz
sorry i don't have the .sma :/
btw for the plugin: type in console "kreedzmod_longjumps_menu" :)
Mehz loves you <3333333
can anybody post the .sma file ???
http://www.preniumz.com/ressources/kreedzmod_longjumps_en.rar
@ AMX not AMXX
#include -> #include
And it will compile fine
;)
Mine is in cstrike/addons/amxmodx/plugins but it doesnt load.. *confused*
add in plugins.ini file plugin name
Thx spermis, i got it working. But it aint working properly, it doesnt set the locations right and shows the wrong number of units.
#include -> #include
change this in sma file and compile it.. maybe then it will work right.. or try downloading newer amxx version
In ichirou @ goldmine demo and brian j2s_sunblock during the climb we can see the best longjump, what is this plugin?? [KZM]....
Thanks a lot!
anny0: Plugin by fatalis http://xtreme-jumps.eu/forum_viewtopic.php?20.31660
thanks a lot Tafatt
Hardcoded by P3tsin <3
compile it and put it in addons/amxmodx/plugins/
and put the line: unitcalculator.amxx or the name u gave the plugin.( if u dont have compiler, go to www.amxmodx.com/compiler and paste the code there)
#include
#include
new Float:startorig[33][3]
new bool:firstset[33]
new spr_beam
new const beamcolor[3] = { 0,255,0 } //rgb color of the beam, range 0-255
public plugin_init() {
register_plugin("Unit-Calculator","2","P3tsin")
register_clcmd("amx_distance","cmd_distance")
register_clcmd("amx_velocity","cmd_velocity")
}
public plugin_precache() {
spr_beam = precache_model("sprites/zbeam4.spr")
}
public client_disconnect(id) {
firstset[id] = false
}
public cmd_distance(id) {
static Float:vec[3]
pev(id,pev_v_angle, vec)
engfunc(EngFunc_MakeVectors, vec)
static Float:origin[3], Float:view_ofs[3]
pev(id,pev_origin, origin)
pev(id,pev_view_ofs, view_ofs)
origin[0] += view_ofs[0]
origin[1] += view_ofs[1]
origin[2] += view_ofs[2]
global_get(glb_v_forward, vec)
vec[0] = origin[0] + vec[0] * 9999
vec[1] = origin[1] + vec[1] * 9999
vec[2] = origin[2] + vec[2] * 9999
static line
engfunc(EngFunc_TraceLine, origin,vec,0,id,line)
get_tr2(line,TR_vecEndPos, vec)
if(firstset[id]) {
drawline(id,vec)
static Float:temp[2]
temp[0] = startorig[id][2], temp[1] = vec[2]
startorig[id][2] = 0.0, vec[2] = 0.0
new Float:dist = get_distance_f(startorig[id],vec)
startorig[id][0] = 0.0, vec[0] = 0.0
startorig[id][1] = 0.0, vec[1] = 0.0
startorig[id][2] = temp[0], vec[2] = temp[1]
new Float:dist2 = get_distance_f(startorig[id],vec)
client_print(id,print_chat, "Horizontal: %.2f, Vertical: %.2f.",dist,dist2)
firstset[id] = false
}
else {
startorig[id][0] = vec[0]
startorig[id][1] = vec[1]
startorig[id][2] = vec[2]
firstset[id] = true
}
return PLUGIN_HANDLED
}
public cmd_velocity(id) {
static Float:vel[3]
pev(id,pev_velocity, vel), vel[2] = 0.0
client_print(id,print_chat, "Velocity: %.2f.",vector_length(vel))
return PLUGIN_HANDLED
}
drawline(id,const Float:end[3]) {
message_begin(MSG_ONE,SVC_TEMPENTITY,{0,0,0},id)
write_byte(TE_BEAMPOINTS) //tempentity event
write_coord(floatround(startorig[id][0])) //startposition: X
write_coord(floatround(startorig[id][1])) //startposition: Y
write_coord(floatround(startorig[id][2])) //startposition: Z
write_coord(floatround(end[0])) //endposition: X
write_coord(floatround(end[1])) //endposition: X
write_coord(floatround(end[2])) //endposition: X
write_short(spr_beam) //sprite index
write_byte(0) //starting frame
write_byte(0) //frame rate in 0.1's
write_byte(40) //life in 0.1's
write_byte(10) //line width in 0.1's
write_byte(0) //noise amplitude in 0.01's
write_byte(beamcolor[0]) //color: red
write_byte(beamcolor[1]) //color: green
write_byte(beamcolor[2]) //color: blue
write_byte(200) //brightness
write_byte(0) //scroll speed in 0.1's
message_end()
}
[ Edited Sun Mar 25 2007, 07:37PM ]
And what's the difference with the fatalis' plugin?
Mine measures how far you jump, this one measures how far a jump is.
so is it better or not?
(fatalis im still waiting for your ljstats plugin 2.0 ^^)
Please log in to post replies.