Raised This Month: $ Target: $400
 0% 

Model changing to something totally different.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 02-01-2007 , 00:05   Model changing to something totally different.
Reply With Quote #1

Here's whats wrong. Everything compiles correctly etc. But when I change my model. It changes to a model that isnt even in there. like, for example, When you turn urself into a chicken. It turns you into a miget ct? That's exactly what it does. That model isnt even in the precache let alone my whole code or the model/player/modelnum folder. Any idea?

Code:
//******************************************************************** //* MiniModel Changing mod by no0bsawce! aka Da_sk8rboy              * //* Cmd:                                                             * //* amx_model <target> <model num>                                   * //* Number choices: ( 1 || 2 || 3 )                                  * //******************************************************************** #include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> #define PLUGIN "minimodel" #define VERSION "1.00a" #define AUTHOR "no0bsawce!" public plugin_init() {             register_plugin(PLUGIN, VERSION, AUTHOR)           register_concmd("amx_model", "cmd_model",0, "<target> <model num>") } public cmd_model(id, level, cid) {           if (!cmd_access(id, level, cid, 3))                   return PLUGIN_HANDLED                   new Arg1[32], Arg2[3]     read_argv(1, Arg1, 31)           read_argv(2, Arg2, 2) new player = cmd_target(id, Arg1, 0)           //Flags:           //1 - obey immunity           //2 - allow yourself           //4 - must be alive           //8 - can't be bot                   if (!player)           {                   console_print(id, "[Model_Mod] player %s could not be found or targetted!", Arg1)                   return PLUGIN_HANDLED           }           else           {             switch(str_to_num(Arg2)) { case 2: cs_set_user_model(player, "model2")       case 3: cs_set_user_model(player, "model3")       default: cs_set_user_model(player, "model1")          } }           return PLUGIN_HANDLED } public plugin_precache() {           precache_model("models/player/model1/model1.mdl") precache_model("models/player/model2/model2.mdl") precache_model("models/player/model3/model3.mdl") }
__________________
i stop around here and there.

Last edited by Da_sk8rboy; 02-01-2007 at 00:24.
Da_sk8rboy is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 02-01-2007 , 00:09   Re: Model changing to something totally different.
Reply With Quote #2

read_argv(2, Arg2, 2)
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 02-01-2007 , 00:14   Re: Model changing to something totally different.
Reply With Quote #3

Testing now

-updated
didnt effect anything

Changed
Code:
new player = cmd_target(id, Arg1, 0)
to
Code:
new player = cmd_target(id, Arg1, 2)


//Sweaty told me to.
-updated
Still nothing.

But I did notice from when i first tested this, it's not even precaching my models @ all.
__________________
i stop around here and there.

Last edited by Da_sk8rboy; 02-01-2007 at 00:53.
Da_sk8rboy is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 02-01-2007 , 18:46   Re: Model changing to something totally different.
Reply With Quote #4

Quote:
Originally Posted by Da_sk8rboy View Post
//Sweaty told me to.
-updated
Still nothing.
Booo I was tired and playing CS..

That is the access..

Anyway, check to make sure those aren't already default models 0.o
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 02-01-2007 , 00:58   Re: Model changing to something totally different.
Reply With Quote #5

This isnt even one of the models that are in the precache but this is what it turns me into for all three of the choices:
__________________
i stop around here and there.
Da_sk8rboy is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 02-01-2007 , 01:15   Re: Model changing to something totally different.
Reply With Quote #6

I'm guessing model1, model2, and model3 aren't the model names your using.

If it's not downloading it either means you spelled the model names wrong somewhere or it finds that the client has a model file with the exact name and does not download it.

Is model1, model2, model3 the actual file names? What are they and I can look through the default model files.
organizedKaoS is offline
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 02-01-2007 , 20:00   Re: Model changing to something totally different.
Reply With Quote #7

Can I recomend case 1, 2, 3, not 2, 3, default.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 02-02-2007 , 17:03   Re: Model changing to something totally different.
Reply With Quote #8

Possibly.
__________________
i stop around here and there.
Da_sk8rboy is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 02-03-2007 , 22:21   Re: Model changing to something totally different.
Reply With Quote #9

For the love of god man, indent your code.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Reply


Thread Tools
Display Modes

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 00:44.


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