AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   downloading models (https://forums.alliedmods.net/showthread.php?t=11413)

nightscreem 03-18-2005 19:43

downloading models
 
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") }

Freecode 03-18-2005 22:04

i dont understand what u want

XxAvalanchexX 03-18-2005 22:11

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.

awp 03-18-2005 23:35

I did all of that and the plugins runs but i cant transfer the sound waves or i cant see the new gun

awp 03-18-2005 23:39

the knife or the m4 show up as originals it downlaods them but they dont show and i still have the sound problem

nightscreem 03-19-2005 08:16

k it can't be done
but is this right that other players download those models and sounds

awp 03-19-2005 13:15

its gsbrufrydernum4

v3x 03-19-2005 14:35

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

nightscreem 03-19-2005 14:50

for what stand v_
and for what stand p_

v3x 03-19-2005 14:59

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?


All times are GMT -4. The time now is 14:15.

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