Raised This Month: $ Target: $400
 0% 

Custom weapon models


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
M4Maniac
Member
Join Date: Aug 2005
Old 03-24-2006 , 21:08  
#1

okay, I did that i changed this to:
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 (if 0)   }   public plugin_precache()   {   precache_model("models/v_bestglock.mdl"); // the view model   precache_model("models/p_betsglock.mdl"); // the player (view) model   }   public set_models(id)   {   if(!is_user_alive(id)) // if the player is dead for some reason, prevent the rest of the function from being executed   {   return PLUGIN_HANDLED;   }   new clip, ammo, weapid = get_user_weapon(id, clip, ammo);   switch(weapid)   {   case CSW_DEAGLE: // check if it's the weapon ID we want (see below for weapon constants)   {   entity_set_string(id , EV_SZ_viewmodel , "models/v_bestglock.mdl"); // set the view model   entity_set_string(id , EV_SZ_weaponmodel , "models/p_bestglock.mdl"); // set the player (view) model   }   }   return PLUGIN_CONTINUE;   }

Okay thats what i did, Still its not working. I restarted the server too.
M4Maniac is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-24-2006 , 21:58  
#2

Is the plugin even running?

Do "amxx list" in the server console.
__________________
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
M4Maniac
Member
Join Date: Aug 2005
Old 03-24-2006 , 22:54  
#3

Nope its not...
M4Maniac is offline
akysiev
Junior Member
Join Date: Mar 2006
Location: Earth
Old 03-24-2006 , 22:56  
#4

Did you add it to plugins.ini then??
akysiev is offline
M4Maniac
Member
Join Date: Aug 2005
Old 03-24-2006 , 22:59  
#5

Yea im not that dumb xP. I put the plugin in my plugins folder called bestglock.amxx
and wrote bestglock.amxx in my plugins.ini
M4Maniac is offline
akysiev
Junior Member
Join Date: Mar 2006
Location: Earth
Old 03-24-2006 , 23:01  
#6

But it doesn't show up in amxx list?
akysiev is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 03-24-2006 , 23:06  
#7

he said its not running...not that it didnt show up.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-24-2006 , 23:28  
#8

Well if it's not running then it's obviously not going to show up

This sounds like more of a support issue than a scripting issue.

Read my sticky: http://forums.alliedmods.net/showthread.php?t=23369

Thread locked.
__________________
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
Closed Thread



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 16:45.


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