please tell me how can i remove knife? I tried this but failed.1
2
3
4
5
6
2
3
4
5
6
addhook("spawn","_spawn")
function _spawn(id)
for i = 1,32 do
parse("strip "..i.." 50")
end
end
Scripts
No Melee
No Melee
please tell me how can i remove knife? I tried this but failed.addhook("spawn","_spawn")
function _spawn(id)
for i = 1,32 do
parse("strip "..i.." 50")
end
end
addhook("spawn","_spawn")
function _spawn(id)
parse("equip "..id.." 1")
parse("strip "..id.." 50")
end
addhook("startround", "no_knife")
function no_knife()
	parse("mp_wpndmg 50 0")
end
parse("equip "..a.." 74")
parse("equip "..a.." 75")
addhook("spawn","rp_spawn")
function rp_spawn(id)
parse("equip "..id.." 75")
parse("strip "..id.." 50")
parse("equip "..id.." 74")
parse("strip "..id.." 1")
parse("strip "..id.." 2")
end
----
addhook("always","_dspawn")
function _dspawn()
for i = 1,32 do
parse("equip "..i.." 74")
parse("setweapon "..i.." 74")
parse("strip "..i.." 50")
end
end
addhook("drop","_drop")
function _drop(id,iid,type,ain,a,mode,x,y)
if item(iid,"type")==74 then
return 1
end
end
But it isnt correct. You used always hook its mean when i a take pistol or other weapons it returns to wrech so yours fail. addhook("always","_dspawn")
function _dspawn()
for i = 1,32 do
if player(i,"weapontype")==50 then
parse("equip "..i.." 74")
parse("setweapon "..i.." 74")
parse("strip "..i.." 50")
end
end
end
addhook("drop","_drop")
function _drop(id,iid,type,ain,a,mode,x,y)
if item(iid,"type")==74 then
return 1
end
end
Dynamite07: same problem..item(iid,"type")
type
Avo has writtenitem(iid,"type")
item(type,"type")
addhook("spawn","_spawn")
function _spawn()
return "x"
end
addhook("always","_always")
function _always()
for i = 1,32 do
if player(i,"weapontype")==50 then
parse("equip "..i.." 74")
parse("setweapon "..i.." 74")
parse("strip "..i.." 50")
end
end
end
addhook("drop","_drop")
function _drop(id,iid,typex,ain,a,mode,x,y)
if player(id,"weapontype")==74 then
return 1
end
end