I need little help with the shit i got, customkill "weapon".
Works:
1
parse("customkill "..source.." killed "..id)
1
parse("customkill "..source.." "..player(source,"weaponname").." "..id)
if the damage is more than hpvalue then customkill, but it's says this instead.
LUA ERROR: sys/lua/morehp.lua:14: attempt to concatenate a boolean value -> sys/lua/morehp.lua:14: in function <sys/lua/morehp.lua:12> -> in Lua hook 'hit', params: 2, 1, 46, 30, 0, 30
i just don't know why the fck it's not work.
But if i change "weaponname" to "weapon" it's will work and "weapon" will be number, but not the name of wpn.
thank you
edited 1×, last 06.08.15 01:54:37 pm