Hey guys, Havent been on these forms in a while! now im back into cs and scripting.
I need help, i want to precache a knife model (v_knife2.mdl) and have every player in the server have that model as their knife. This is a very simple script exept every time i try someones script or edit theirs it just doesent work.
Thanks,
oreo824
Edit:
Code:
#include <amxmodx>
#include <engine>
public plugin_init()
{
register_plugin( "eGKnife" ,"1.0", "incRo")
register_event("CurWeapon","event_curweapon","b")
}
public plugin_precache()
{
precache_model("models/custom/egknife.mdl")
}
public event_curweapon(id)
{
new ammo, clip
if(get_user_weapon(id,ammo,clip) == CSW_KNIFE)
{
entity_set_string(id,EV_SZ_viewmodel,"models/custom/egknife.mdl")
}
}
can someone verify this? i compiled and checked and everything worked fine except the model didnt show up
__________________