Well, im all new to this.. i followed i guide and i comed up with this:
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <engine> // This plugin requires engine
#define PLUGIN "Nazi"
#define VERSION "1.0"
#define AUTHOR "Willy2k"
public plugin_init() {
register_plugin("M4A1_DES", "1.0", "Willy2k")
the isActive parameter then the skins will act up and change unexpectedly on you (if 0)
}
// public plugin_precache() {
precache_model("models/v_m4a1.mdl"); // the view model
precache_model("models/p_m4a1.mdl"); // the player (view) model
precache_model("models/w_m4a1.mdl"); // something i dont know about
}.
}public set_models(id) {
if(!is_user_alive(id)) { // if the player is dead for some reason, prevent the rest of the function from being executed
return PLUGIN_CONTINUE;
}
new weapid = read_data(2); // get the weapon ID
switch(weapid) {
case CSW_M4A1: { // check if it's the weapon ID we want (see below for weapon constants)
entity_set_string(id , EV_SZ_viewmodel , "models/v_m4a1.mdl"); // set the view model
entity_set_string(id , EV_SZ_weaponmodel , "models/p_m4ai.mdl"); // set the player (view) model
entity_set_string(id , EV_SZ_weaponmodel , "models/w_m4ai.mdl"); // blabla
}
// this is where you'd add more if needed
}
return PLUGIN_CONTINUE;
}
How to fix this ?