Hey, I tried to make a small plugin where it forces the user to use the model on the server, but it doesn't work.. For example, I want them to use
v_LOCKscout.mdl as their scout model.
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#define PLUGIN "Set models"
#define AUTHOR "v3x"
#define VERSION "1.00"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon","setModel","be")
}
public plugin_precache()
{
precache_model("models/v_LOCKscout.mdl")
}
public setModel(id)
{
new clip, ammo
new weapon = get_user_weapon(id,clip,ammo)
switch(weapon)
{
case CSW_SCOUT: entity_set_string(0,EV_SZ_viewmodel,"models/v_LOCKscout.mdl")
}
return PLUGIN_HANDLED
}
Anyone know?
__________________