Author
|
Message
|
Senior Member
|
05-03-2009
, 07:48
Changing p_model on player
|
#1
|
Hey
Noob @ coding. So need some help.
Ive got this piece of code out of Predator Mode.
//---------------[PREDATOR CLAWS]---------------
public toggleclaws(id)
{
new clip, ammo, wpnid = get_user_weapon(id,clip,ammo)
new model[32]
entity_get_string(id,EV_SZ_viewmodel,model,31 )
if(ispredator[id]!=0 && !equali(model,"fawpub/v_wristblades.mdl") && !equali(model,"models/v_c4.mdl"))
{
entity_set_string(id, EV_SZ_viewmodel,"fawpub/v_wristblades.mdl")
}
if(ispredator[id]==0 && wpnid == CSW_KNIFE && !equali(model,"models/v_knife.mdl"))
{
entity_set_string(id, EV_SZ_viewmodel,"models/v_knife.mdl")
}
}
What I understand it does is change the v_knife model ONLY on the predator player, and something else too.
So how do I change the p_knife model on ONLY the predator player?
Thx in advance
|
|
|
|