Unit plugin thingy..

Started by Mehz
25/01/2007 16:39
Page 1 of 2
Mehz25/01/2007 16:39

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

h1m1 mapper25/01/2007 16:45

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 ]

neppo25/01/2007 19:41

how can i show the menu in game ??? this "kreedzmod_longjumps_menu" doesn't work :(

ichirou25/01/2007 20:38

how can i show the menu in game ??? this "kreedzmod_longjumps_menu" doesn't work :(

neppo


Write "amx_plugins" in the console and see if it has been loaded correctly.

That command should be correct.

Mehz25/01/2007 20:42

longjumps plugin made by PrEn1uMz
sorry i don't have the .sma :/
btw for the plugin: type in console "kreedzmod_longjumps_menu" :)

h1m1


Mehz loves you <3333333

neppo27/01/2007 09:55

can anybody post the .sma file ???

PrEn1uMz27/01/2007 12:47

http://www.preniumz.com/ressources/kreedzmod_longjumps_en.rar

@ AMX not AMXX

Fatalis27/01/2007 13:06

#include -> #include
And it will compile fine

jeflefou29/01/2007 23:18

;)

Starz30/01/2007 12:26

Mine is in cstrike/addons/amxmodx/plugins but it doesnt load.. *confused*

spermis30/01/2007 14:24

add in plugins.ini file plugin name

Starz31/01/2007 17:54

Thx spermis, i got it working. But it aint working properly, it doesnt set the locations right and shows the wrong number of units.

spermis04/02/2007 18:06

#include -> #include
change this in sma file and compile it.. maybe then it will work right.. or try downloading newer amxx version

delete_pls07/02/2007 13:42

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!

Tafatt07/02/2007 15:12

anny0: Plugin by fatalis http://xtreme-jumps.eu/forum_viewtopic.php?20.31660

delete_pls07/02/2007 15:23

thanks a lot Tafatt

nowalone24/03/2007 18:34

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 ]

NoEx mapper24/03/2007 18:51

And what's the difference with the fatalis' plugin?

Fatalis24/03/2007 19:11

Mine measures how far you jump, this one measures how far a jump is.

SchlumPF25/03/2007 15:00

so is it better or not?
(fatalis im still waiting for your ljstats plugin 2.0 ^^)

Page 1 of 2

Please log in to post replies.