Raised This Month: $ Target: $400
 0% 

[SOLVED] Set Weapon dude


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
extream87
Senior Member
Join Date: Aug 2011
Old 03-17-2014 , 17:27   [SOLVED] Set Weapon dude
Reply With Quote #1

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...

Last edited by extream87; 03-18-2014 at 08:03.
extream87 is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 03-17-2014 , 17:37   Re: [HELP] Set Weapon dude
Reply With Quote #2

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.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
extream87
Senior Member
Join Date: Aug 2011
Old 03-17-2014 , 17:38   Re: [HELP] Set Weapon dude
Reply With Quote #3

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)

Last edited by extream87; 03-17-2014 at 17:50.
extream87 is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 03-17-2014 , 17:50   Re: [HELP] Set Weapon dude
Reply With Quote #4

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?

Last edited by Flick3rR; 03-17-2014 at 17:53.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
extream87
Senior Member
Join Date: Aug 2011
Old 03-17-2014 , 17:54   Re: [HELP] Set Weapon dude
Reply With Quote #5

So is:
Code:
entity_set_string(id, EV_SZ_weaponmodel,"models/lightning_awp_pmodel.mdl")
Right?
extream87 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 03-17-2014 , 18:06   Re: [HELP] Set Weapon dude
Reply With Quote #6

@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?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
extream87
Senior Member
Join Date: Aug 2011
Old 03-17-2014 , 18:39   Re: [HELP] Set Weapon dude
Reply With Quote #7

Works but i have a problem:


I'm using v_model, i need to use p_model?
extream87 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-17-2014 , 18:41   Re: [HELP] Set Weapon dude
Reply With Quote #8

You need to use the correct model for the correct view
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 03-18-2014 , 05:03   Re: [HELP] Set Weapon dude
Reply With Quote #9

@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.

Last edited by Flick3rR; 03-18-2014 at 05:04.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
extream87
Senior Member
Join Date: Aug 2011
Old 03-18-2014 , 08:03   Re: [HELP] Set Weapon dude
Reply With Quote #10

Yes flickerr i've corrected the model and all is fine.
Thank's all.
extream87 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 06:04.


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