shouldnt this work or did i leave something out by mistake? iam testing on DoD, but it doesnt work. the classnames is registered right, i dont get any errors.. is it an offset or something i missed?
Code:
new const Knife_Names[][] = { "weapon_amerknife", "weapon_spade", "weapon_gerknife" }
public plugin_init()
{
for (new i = 0; i < sizeof Knife_Names; i++)
RegisterHam(Ham_Item_Deploy, Knife_Names[i], "current_wpn", 1)
}
public current_wpn(id)
{
client_print(id,3, "knife is forward")
}
- cheers!
__________________