Raised This Month: $ Target: $400
 0% 

trying to make a plugin with the sv_downloadurl


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
atwhitman101
Junior Member
Join Date: Apr 2006
Location: new york
Old 04-19-2006 , 11:53   trying to make a plugin with the sv_downloadurl
Reply With Quote #1

ok, so i am trying to make a plugin with custom weapon models, and sound. but im having issues with it. i need some help on it. i tested it and it partially worked. i saw it download from the website through the game server but when i opened up the console it said couldn't transmit sound/sound/. this is what i have so far

Code:
#include <amxmodx>
#include <engine> // this plugin requires Engine

public plugin_init() {
  register_plugin("oh hello" , "1.0" , "v3x");
  register_event("CurWeapon" , "set_models" , "be" , "1=1"); // if we don't check for the isActive parameter then the skins will act up and change unexpectedly on you
}

public plugin_precache() {
  precache_model("models/v_ak47.mdl"); // the view model
  precache_model("models/p_ak47.mdl"); // the player (view) model
  precache_model("models/w_ak47.mdl"); // the view model
  precache_model("models/v_xm1014.mdl"); // the player (view) model
  precache_model("models/p_xm1014.mdl"); // the view model
  precache_model("models/w_xm1014.mdl"); // the player (view) model
  precache_model("models/v_g3sg1.mdl"); // the view model
  precache_model("models/p_g3sg1.mdl"); // the player (view) model
  precache_model("models/v_m3.mdl"); // the view model
  precache_model("models/w_m3.mdl"); // the player (view) model
  precache_model("models/p_m3.mdl"); // the player (view) model
  precache_model("models/v_g3sg1.mdl"); // the view model
  precache_model("models/p_g3sg1.mdl"); // the player (view) model
  precache_model("models/p_c4.mdl"); // the view model
  precache_model("models/p_m4a1.mdl"); // the player (view) model
  precache_model("models/p_m249.mdl"); // the view model
  precache_model("models/p_mac10.mdl"); // the player (view) model
  precache_model("models/p_scout.mdl"); // the view model
  precache_model("models/p_sg552.mdl"); // the player (view) model
  precache_model("models/v_aug.mdl"); // the view model
  precache_model("models/v_awp.mdl"); // the player (view) model
  precache_model("models/v_c4.mdl"); // the player (view) model
  precache_model("models/v_famas.mdl"); // the player (view) model
  precache_model("models/v_flashbang.mdl"); // the player (view) model
  precache_model("models/v_hegrenade.mdl"); // the player (view) model
  precache_model("models/v_m4a1.mdl"); // the player (view) model
  precache_model("models/v_m249.mdl"); // the player (view) model
  precache_model("models/v_mac10.mdl"); // the player (view) model
  precache_model("models/v_mp5.mdl"); // the player (view) model
  precache_model("models/v_pist_usp.mdl"); // the player (view) model
  precache_model("models/v_scout.mdl"); // the player (view) model
  precache_model("models/v_sg550.mdl"); // the player (view) model
  precache_model("models/v_sg552.mdl"); // the player (view) model
  precache_model("models/v_smokegrenade.mdl"); // the player (view) model
  precache_model("models/w_aug.mdl"); // the player (view) model
  precache_model("models/w_c4.mdl"); // the player (view) model
  precache_model("models/w_famas.mdl"); // the player (view) model
  precache_model("models/w_flashbang.mdl"); // the player (view) model
  precache_model("models/w_g3sg1.mdl"); // the player (view) model
  precache_model("models/w_hegrenade.mdl"); // the player (view) model
  precache_model("models/w_m4a1.mdl"); // the player (view) model
  precache_model("models/w_m249.mdl"); // the player (view) model
  precache_model("models/w_mac10.mdl"); 
  precache_model("models/w_pist_up.mdl"); 
  precache_model("models/w_smokegrenade.mdl"); 
  precache_model("models/p_knife.mdl");
  precache_model("models/p_shield_knife.mdl");
  precache_model("models/v_knife.mdl");
  precache_model("models/v_shield_knife.mdl");
  precache_model("models/w_sg552.mdl");
  precache_model("models/w_sg552.mdl");
  precache_model("models/w_sg552.mdl");
  precache_model("models/w_sg552.mdl");
  precache_model("models/w_sg552.mdl");
  precache_model("sprites/w_mac10.spr");
  precache_sound("m4a1-1.wav");
  precache_sound("sg550-1.wav");
  precache_sound("m4a1_boltpull.wav");
  precache_sound("m4a1_clipin.wav");
  precache_sound("m4a1_clipout");
  precache_sound("m4a1_silencer_off.wav");
  precache_sound("awp_boltback.wav");
  precache_sound("awp_boltforward.wav");
  precache_sound("awp_magin.wav");
  precache_sound("awp_magout.wav");
  precache_sound("havbolt.wav");
  precache_sound("aug-1.wav");
  precache_sound("aug-2.wav");
  precache_sound("m60_boxin.wav");
  precache_sound("m60_boxout.wav");
  precache_sound("m60_chain.wav");
  precache_sound("m60_coverdown.wav");
  precache_sound("m60_coverup.wav");
  precache_sound("m249-1.wav");
  precache_sound("m249-2.wav");
  precache_sound("famas-1.wav");
  precache_sound("famas-2.wav");
  precache_sound("havmagin.wav");
  precache_sound("havmagout.wav");
  precache_sound("havmagtap.wav");
  precache_sound("m4a1_silencer_on.wav");
  precache_sound("knife_deploy1.wav");
  precache_sound("knife_hit1.wav");
  precache_sound("knife_hit2.wav");
  precache_sound("knife_hit3.wav");
  precache_sound("knife_hit4.wav");
  precache_sound("knife_hitwall1.wav");
  precache_sound("knife_hitwall2.wav");
  precache_sound("knife_hitslash1.wav");
  precache_sound("knife_hitslash2.wav");
  precache_sound("knife_stab.wav");
}
i need help with this.
atwhitman101 is offline
Send a message via ICQ to atwhitman101 Send a message via AIM to atwhitman101 Send a message via MSN to atwhitman101 Send a message via Yahoo to atwhitman101
 



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 05:04.


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