i have a taser lua, so i will change the gun name, sample: p228 new name is Taser
is that possible, if so, how can i change it or do i have to create a new lua for it?
edited 1×, last 13.05.19 04:28:08 am
addhook("hit","_hit")
function _hit(id,source,weapon,hpdmg)
if weapon == 4 and hpdmg >= player(id,"health") then
parse("customkill "..source.." Taser "..id)
end
end
TaserName = "Zeus x27"
TaserRange = 64
TaserAttackSound = "weapons/taser_attack.ogg"
TaserDrawSound = "weapons/taser_draw.ogg"
TaserInHandImage = "gfx/weapons/taser.bmp"
TaserKillImage = "gfx/weapons/taser_k.bmp"
TaserAngle = 30
TaserSoundRange = 160
TaserBaseDamage = 500
TaserPrice = 200
addhook("hit","_hit")
function _hit(id,source,weapon,hpdmg)
if weapon == 4 and hpdmg >= player(id,"health") then
parse("customkill "..source.." Taser "..id)
end
end