Raised This Month: $ Target: $400
 0% 

Change JB model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RuleBreaker
Senior Member
Join Date: May 2011
Old 10-21-2011 , 14:36   Change JB model
Reply With Quote #1

How can I change Simon's model for JailBreak??
RuleBreaker is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 10-21-2011 , 19:13   Re: Change JB model
Reply With Quote #2

change the player model in the code.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-21-2011 , 20:30   Re: Change JB model
Reply With Quote #3

model_precache("MODELHERE")

cs_set_user_model(id, "MODELHERE") ??
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-21-2011 , 20:35   Re: Change JB model
Reply With Quote #4

Quote:
Originally Posted by Napoleon_be View Post
model_precache("MODELHERE")

cs_set_user_model(id, "MODELHERE") ??
No. Don't post until you know how to do it yourself.

PHP Code:
precache_model"models/player/model_name/model_name.mdl" );

cs_set_user_modelid"model_name" ); 
It must be in that format for the location of the player model. The model name must be in a folder with the same name. For example, "simon.mdl", must be placed in "models/player/simon/simon.mdl", and "example.mdl" must be placed in "models/player/example/example.mdl"

And then to set the model, use the model name WITHOUT the .mdl extension.

For simon.mdl you would do

cs_set_user_model( id, "simon" );

and for example.mdl

cs_set_user_model( id, "example" );
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by nikhilgupta345; 10-21-2011 at 20:36.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-21-2011 , 22:13   Re: Change JB model
Reply With Quote #5

Quote:
Originally Posted by nikhilgupta345 View Post
No. Don't post until you know how to do it yourself.

PHP Code:
precache_model"models/player/model_name/model_name.mdl" );

cs_set_user_modelid"model_name" ); 
It must be in that format for the location of the player model. The model name must be in a folder with the same name. For example, "simon.mdl", must be placed in "models/player/simon/simon.mdl", and "example.mdl" must be placed in "models/player/example/example.mdl"

And then to set the model, use the model name WITHOUT the .mdl extension.

For simon.mdl you would do

cs_set_user_model( id, "simon" );

and for example.mdl

cs_set_user_model( id, "example" );
You're just doing the same way as me, you fucking prick. Why would they ask for help if they don't even know what to do with a model.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Stereo
Veteran Member
Join Date: Dec 2010
Old 10-22-2011 , 08:57   Re: Change JB model
Reply With Quote #6

Don't use cs_set_user_model, this can do SVC_BAD


use fm_set_user_model from the plugin of Connor

http://forums.alliedmods.net/showthread.php?t=80847
Stereo is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-22-2011 , 09:37   Re: Change JB model
Reply With Quote #7

Quote:
Originally Posted by Napoleon_be View Post
You're just doing the same way as me, you fucking prick.
Are you retarded?

The problems with your code:

1) You used model_precache instead of precache_model.
2) You were teling him to use the full model directory to set the model instead of only the actual model name.

I'm telling you to get more experience or at least make sure your answer is correct before trying to help others.

Quote:
Originally Posted by Napoleon_be View Post
Why would they ask for help if they don't even know what to do with a model.
Read that again to yourself and tell me how stupid it sounds.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by nikhilgupta345; 10-22-2011 at 10:08.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
RuleBreaker
Senior Member
Join Date: May 2011
Old 10-22-2011 , 11:19   Re: Change JB model
Reply With Quote #8

I want to edit plugin, but in plugin all (4-5) models are in one :\
RuleBreaker is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-22-2011 , 13:24   Re: Change JB model
Reply With Quote #9

Quote:
Originally Posted by RuleBreaker View Post
I want to edit plugin, but in plugin all (4-5) models are in one :\
What???
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 10-22-2011 , 14:04   Re: Change JB model
Reply With Quote #10

Quote:
Originally Posted by wickedd View Post
What???
lol that is exactly what i was going to say.

@OP post the section of the code that has the player models
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
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 00:33.


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