hmm also i tried that and came up some new errors that I cant figure out...
Quote:
#include <amxmodx>
#include <engine> //included engine
public check_knife(id) {
if (get_cvar_num("sv_crowbar")!=1)
return PLUGIN_CONTINUE
new llama = read_data(0)
client_print(llama,print_center,"Crowbar Active")
client_cmd(llama,"wait;wait;wait;")
if(llama == CSW_KNIFE)
{
entity_set_string(id, EV_SZ_viewmodel, "models/v_crowbar.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/p_crowbar.mdl")
}
public plugin_precache() //line 17
{
precache_model("models/v_crowbar.mdl")
precache_model("models/p_crowbar.mdl")
}
|
with errors:
Quote:
/home/users/amxmodx/tmp3/phpEldqEX.sma(17) : error 029: invalid expression, assumed zero
/home/users/amxmodx/tmp3/phpEldqEX.sma(17) : error 004: function "plugin_precache" is not implemented
/home/users/amxmodx/tmp3/phpEldqEX.sma(23) : error 001: expected token: "}", but found "-end of file-"
|
when i put a } on line 23 it still doesnt work...