select triggers on weapon ID 50 (knife), setting it to 69 (machete) and stripping the knife.You shouldn't notice it happening.
Edit: Select apparently does not trigger if your selection is forced by the game. Here is another solution:
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
function drop(id)
timer(0, "checkWeapon", id)
end
addhook("drop", "drop")
function checkWeapon(id)
id = tonumber(id)
if player(id, "weapontype") == 50 then
parse("setweapon "..id.." 69")
parse("strip "..id.." 50")
end
end
edited 1×, last 23.11.17 11:03:44 am
CS2D Bug Reports


Offline
Yates
cs2d rank score bug


