Raised This Month: $ Target: $400
 0% 

downloading models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 03-18-2005 , 19:43   downloading models
Reply With Quote #1

i made a plugin for a friend of my
that players that come to the server download new weapon models
but how can i set in the code that the skins only can used on
that server if it can be done
here is the code
Code:
#include <amxmodx> public plugin_init() {     register_plugin("weapon models","1.0","Nightscream") } public plugin_precache() { /*---------------------------Knife models------------------------*/     precache_model("models/v_knife.mdl")     precache_model("sprites/w_knife.spr")     precache_sound("sound/weapons/knife_deploy1.wav")     precache_sound("sound/weapons/knife_hit1.wav")     precache_sound("sound/weapons/knife_hit2.wav")     precache_sound("sound/weapons/knife_hit3.wav")     precache_sound("sound/weapons/knife_hit4.wav")     precache_sound("sound/weapons/knife_hitwall1.wav")     precache_sound("sound/weapons/knife_hitwll2.wav")     precache_sound("sound/weapons/knife_slash1.wav")     precache_sound("sound/weapons/knife_slash2.wav") /*---------------------------M4 Models--------------------------*/     precache_model("models/p_m4a1.mdl")     precache_model("models/v_m4a1.mdl")     precache_model("models/v_m4a1_mrt.mdl")     precache_model("models/w_m4a1.mdl")     precache_sound("sound/weapons/m4a1-1.wav")     precache_sound("sound/weapons/m4a1-2.wav")     precache_sound("sound/weapons/m4a1_boltpull.wav")     precache_sound("sound/weapons/m4a1_clipin.wav")     precache_sound("sound/weapons/m4a1_clipout.wav")     precache_sound("sound/weapons/m4a1_deploy.wav")     precache_sound("sound/weapons/m4a1_silencer_off.wav")     precache_sound("sound/weapons/m4a1_silencer_on.wav")     precache_sound("sound/weapons/m4a1_unsil-1.wav")     precache_sound("sound/weapons/m4a1_unsil-2.wav") }
__________________
- Bye bye!
nightscreem is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-18-2005 , 22:04  
Reply With Quote #2

i dont understand what u want
Freecode is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-18-2005 , 22:11  
Reply With Quote #3

You can't just overwrite all of their models and sounds. You'd have to download the model under a different name and set their viewmodel to what you want when they switch to that weapon, and you'd have to catch emitsound or something and see if it is one of the regular sounds, and stop it and emit your own custom sound.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
awp
Junior Member
Join Date: Mar 2005
Old 03-18-2005 , 23:35  
Reply With Quote #4

I did all of that and the plugins runs but i cant transfer the sound waves or i cant see the new gun
awp is offline
Send a message via AIM to awp
awp
Junior Member
Join Date: Mar 2005
Old 03-18-2005 , 23:39  
Reply With Quote #5

the knife or the m4 show up as originals it downlaods them but they dont show and i still have the sound problem
awp is offline
Send a message via AIM to awp
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 03-19-2005 , 08:16  
Reply With Quote #6

k it can't be done
but is this right that other players download those models and sounds
__________________
- Bye bye!
nightscreem is offline
awp
Junior Member
Join Date: Mar 2005
Old 03-19-2005 , 13:15  
Reply With Quote #7

its gsbrufrydernum4
awp is offline
Send a message via AIM to awp
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-19-2005 , 14:35  
Reply With Quote #8

By the way, you are better off to use just the v models. Besides, how often do you look at other players guns? It's a lot less to download, p and w models are not needed.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 03-19-2005 , 14:50  
Reply With Quote #9

for what stand v_
and for what stand p_
__________________
- Bye bye!
nightscreem is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-19-2005 , 14:59  
Reply With Quote #10

Quote:
Originally Posted by nightscreem
for what stand v_
and for what stand p_
v - Is the view of the gun in first person.
p - Is the view of the gun when you're looking at someone else holding it.
w - Is the view of it laying on the ground.

Get my point about not needing the other ones?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 14:15.


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