MMmk this was completely private, but i think ill release it if i can get it so that when someone says /nosource that it removes the source models:::*Yet i highly doubt it would be approved, due to the fact that it will only let users toggle between 1.6 models and CSS models.
Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <cstrike>
new PLUGIN_NAME[] = "Countermodels"
new PLUGIN_VERSION[] = "6.2"
new PLUGIN_AUTHOR[] = "10$74|2$"
new hasModels[33]
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_event("CurWeapon", "Event_CurWeapon", "be", "1=1")
register_clcmd("say /source", "cmdModels", 0)
}
public cmdModels(id)
{
hasModels[id] = 1
}
public client_connect(id)
{
hasModels[id] = 0
}
public plugin_precache()
{
precache_model("models/CSS/v_ak47.mdl")
}
public Event_CurWeapon(id)
{
if(!is_user_alive(id) || !hasModels[id])
return PLUGIN_CONTINUE
new temp[2], weapon = get_user_weapon(id, temp[0], temp[1])
if(weapon == CSW_KNIFE)
{
entity_set_string(id, EV_SZ_viewmodel,"models/CSS/v_knife.mdl")
}
return PLUGIN_CONTINUE
}
I stopped at 6.2 because i couldnt figure out how to remove the models once a user has switched to them.
Any help o.o
__________________