heh? was this a question? if yea : yea its so right. but its not the problem. this was just to see if my if works & yea i writed this wrong.
still need help.
nothing works

((
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <screenfade_util>
#include <fakemeta>
#define FLARE_MODEL "models/w_flare.mdl"
#define is_ent_flare(%1) (pev(%1, pev_iuser4) == 1333) ? 1 : 0
new cvar_smokeflare_dur;
new iconstatus
new cvar_smokeflare = 0
public plugin_init()
{
register_plugin("Hulk mod", "1.0", "One")
set_task(5.0, "check_hulk", 1, _, _, "b")
iconstatus = get_user_msgid("StatusIcon")
register_forward(FM_SetModel, "fwd_setmodel");
register_forward(FM_Think, "fwd_think");
cvar_smokeflare_dur = register_cvar("flare_duration", "999.9");
}
public plugin_precache()
{
precache_model("models/player/hulk/hulk.mdl")
precache_model(FLARE_MODEL);
}
public check_hulk(id)
{
if(get_user_health(id) >= 1000)
{
cs_set_user_model(id, "models/player/hulk/hulk.mdl")
set_user_gravity(id, 0.7)
strip_user_weapons(id)
give_item(id, "weapon_knife")
UTIL_ScreenFade(id,{0,255,0},1.0,99.0,30)
cs_set_user_team(id, 1)
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
write_byte(1);
write_string("dmg_gas");
write_byte(0);
write_byte(255);
write_byte(0);
message_end();
cvar_smokeflare = 1
if(get_user_health(id) <= 100)
{
not_hulked(id)
}
}
}
public not_hulked(id)
{
set_user_health(id, 300)
set_user_gravity(id, 400.0)
cs_set_user_team(id, 2)
}
public fwd_setmodel(ent, const model[])
{
if(!pev_valid(ent) || !equal(model[9], "smokegrenade.mdl"))
return FMRES_IGNORED;
static classname[32]; pev(ent, pev_classname, classname, 31);
if(equal(classname, "grenade") && cvar_smokeflare == 1) {
engfunc(EngFunc_SetModel, ent, FLARE_MODEL);
set_pev(ent, pev_effects, EF_BRIGHTLIGHT);
set_pev(ent, pev_iuser4, 1333);
set_pev(ent, pev_nextthink, get_gametime() + get_pcvar_float(cvar_smokeflare_dur));
fm_set_rendering(ent, kRenderFxGlowShell, 150, 150, 250, kRenderNormal, 16);
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
public fwd_think(ent)
{
if(pev_valid(ent) && is_ent_flare(ent))
engfunc(EngFunc_RemoveEntity, ent);
}
stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16)
{
static Float:color[3]; color[2] = float(b), color[0] = float(r), color[1] = float(g);
set_pev(entity, pev_renderfx, fx);
set_pev(entity, pev_rendercolor, color);
set_pev(entity, pev_rendermode, render);
set_pev(entity, pev_renderamt, float(amount));
return 1;
}
the flaer must be enabled after hulk activate. but its still on.
only i willbe stripped & other hulks, have still weapons.
the model works not. cl_minmodel still on 0 but same models.
the Ts. will not be transfered after hukl activation.

where are/is my problem/s??
__________________