Raised This Month: $51 Target: $400
 12% 

Changing p_model on player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fawkes37
Senior Member
Join Date: Jul 2008
Old 05-03-2009 , 07:48   Changing p_model on player
Reply With Quote #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
Fawkes37 is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 05-03-2009 , 07:53   Re: Changing p_model on player
Reply With Quote #2

see this tutorial
http://forums.alliedmods.net/showthread.php?t=40822
__________________
alan_el_more is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode