Raised This Month: $51 Target: $400
 12% 

Model Changer Isn't Working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 05-29-2005 , 16:56   Model Changer Isn't Working
Reply With Quote #1

Hey, I got a plugin

Code:
#pragma tabsize 0 #include <amxmodx> #include <cstrike> #include <amxmisc> public plugin_init() {     register_plugin("Knife","1.0","Dizzy")     register_event("ResetHUD","newround","be") } public newround(id) {     cs_set_user_model(id, "p_knife15.mdl")     cs_set_user_model(id, "v_knife15.mdl")     cs_set_user_model(id, "w_knife15.mdl") } public plugin_precache() {     precache_model("p_knife15.mdl")     precache_model("v_knife15.mdl")     precache_model("w_knife15.mdl") }

Now, I Have The Models For The Server in

cstrike folder Not The models folder

And It makes you download the , etc.

It won't precache them fro you to see them.

it's a 1.5 knife model.

I am wondering if it is making them a player model and I'm a floating knife or something

Please Help me!

And
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Yuri
Senior Member
Join Date: May 2005
Location: Yuri's Cyber Cafe
Old 05-29-2005 , 17:10  
Reply With Quote #2

Here,

cs_set_User_model
keyword: user, It does not change weapon models.
Well atleast I'm 99% sure It only changes player models.
Yuri is offline
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 05-30-2005 , 12:06  
Reply With Quote #3

Yeah, I Know what you mean now, But what would I use for the weapon model?

I have tried useing

cs_set_model

and

cs_set_weapon_model

Neither work.

A little help someone?
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Yuri
Senior Member
Join Date: May 2005
Location: Yuri's Cyber Cafe
Old 05-30-2005 , 12:12  
Reply With Quote #4

did you look In the .inc file?
Yuri is offline
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 05-30-2005 , 12:15  
Reply With Quote #5

Not sure which one to look in, I looked through a couple like,

Fun,
Engine,
Amxmod,
and
Amxmisc

but nothing about model changing.

__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Yuri
Senior Member
Join Date: May 2005
Location: Yuri's Cyber Cafe
Old 05-30-2005 , 12:18  
Reply With Quote #6

Hmm, Maybe you are not Including the file that Includes cs_set_model ect.
I think It's the cstrike Inc file, Not sure.
Yuri is offline
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 05-30-2005 , 12:19  
Reply With Quote #7

I did a user model before

I made everyone look like the Halo people

And it worked with

cs_set_user_model

but

I am wondering if I look like floating knives

cause cs_set_USER_model

which .inc would have the models?

I am looking through them now.
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 05-30-2005 , 12:21  
Reply With Quote #8

Oh! Maybe This
Code:
cs_get_user_model(id, "p_knife.mdl")cs_set_user_model(id, "p_knife15.mdl")

That's a start

Help me off that Yuri?

Or This
Code:
cs_get_user_model(id, cs_set_user_model(id) "p_knife15.mdl")

Sound A Bit Right?

Or Sorta?
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-30-2005 , 12:31  
Reply With Quote #9

I would just use the p_ model. Try setting up your directory/files like this:

models/p_knife15/p_knife15.mdl

[EDIT]
And to get their models..
Code:
new model[64] cs_get_user_model(id,model,63) switch(model) {     case CS_T_LEET: {         // ..     }     case CS_CT_GIGN: {         // ..     }     // Etc. }
__________________
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
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 05-30-2005 , 12:32  
Reply With Quote #10

Why not just in your cstrike folder?

is that a problem?
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
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 03:27.


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