AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED] Set Weapon dude (https://forums.alliedmods.net/showthread.php?t=237096)

extream87 03-17-2014 17:27

[SOLVED] Set Weapon dude
 
This command is to set model to player.
Code:
new lightning_awp_vmodel[64] = "models/skinned/awp_lightning/v_light_awp.mdl" set_pev(id, pev_viewmodel2, lightning_awp_vmodel)

How can i set the model to the other players can see my weapon (forward).
Example: I want to see Pat weapon "custom model".
I think is w_model...
http://4.bp.blogspot.com/-LubpIWckNO...0/untitled.JPG

Flick3rR 03-17-2014 17:37

Re: [HELP] Set Weapon dude
 
Well, I think that it should be
PHP Code:

entity_set_string(idEV_SZ_weaponmodel,"models/lightning_awp_vmodel.mdl"

But for this, you should set the directory of the P_MODEL, whick is for that the other players can see your weapon special model. If i'm not right, correct me.

extream87 03-17-2014 17:38

Re: [HELP] Set Weapon dude
 
Yes i know, but is vmodel? or wmodel?

undefined symbol entity_set_string...

Can i use?
Code:
set_pev(client, pev_viewmodel, lightning_awp_vmodel)

Flick3rR 03-17-2014 17:50

Re: [HELP] Set Weapon dude
 
This is for the v_model. And for this, what you want, you should use p_model.
Well, maybe you must
PHP Code:

#include <engine> 

or
PHP Code:

#include <amxmisc> 

and then try again?

extream87 03-17-2014 17:54

Re: [HELP] Set Weapon dude
 
So is:
Code:
entity_set_string(id, EV_SZ_weaponmodel,"models/lightning_awp_pmodel.mdl")
Right?

hornet 03-17-2014 18:06

Re: [HELP] Set Weapon dude
 
@Flick3rR please stop giving bad advice. Fakemeta or engine could both be used in this instance, but amxmisc has nothing to do with it.

@Extreme87 that will be fine. Test it?

extream87 03-17-2014 18:39

Re: [HELP] Set Weapon dude
 
Works but i have a problem:
http://i.imgur.com/aXCpVib.png

I'm using v_model, i need to use p_model?

YamiKaitou 03-17-2014 18:41

Re: [HELP] Set Weapon dude
 
You need to use the correct model for the correct view

Flick3rR 03-18-2014 05:03

Re: [HELP] Set Weapon dude
 
@hornet, I'm sorry if I did something wrong, but isn't one more opinion useful? After all, it worked, but he just needs to set the right model.

extream87 03-18-2014 08:03

Re: [HELP] Set Weapon dude
 
Yes flickerr i've corrected the model and all is fine.
Thank's all.


All times are GMT -4. The time now is 06:04.

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