Raised This Month: $ Target: $400
 0% 

Set player model through menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-19-2010 , 16:57   Set player model through menu
Reply With Quote #1

ok so here is the deal,

I have a menu with 2 items:

Choose Item :

1.Item a
2.Item a

Now when i choose Item a , i want it to give me a custom model.

i tried cs_set_model , but i cannot add my custom model.

my custom model location is in model/player/luffy/luffy.mdl

Ill thank any1 who helps me , (I wish the karma function was still there , so i could atleast say +k for any1 who helps -.-)

FLAMERS = please donot flame xD
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-19-2010 , 17:41   Re: Set player model through menu
Reply With Quote #2

This has nothing to do with menus btw.

The folder should be "models" not "model".
The correct function to use is cs_set_user_model().
I believe you reference the model by just the filename without extension so in your case it would be "luffy".
__________________
fysiks is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 06-20-2010 , 03:52   Re: Set player model through menu
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
This has nothing to do with menus btw.

The folder should be "models" not "model".
The correct function to use is cs_set_user_model().
I believe you reference the model by just the filename without extension so in your case it would be "luffy".
& karma was removed xD
Vechta is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-20-2010 , 04:02   Re: Set player model through menu
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
This has nothing to do with menus btw.

The folder should be "models" not "model".
The correct function to use is cs_set_user_model().
I believe you reference the model by just the filename without extension so in your case it would be "luffy".
Well, when you precache it, you do use the .mdl extension.
It's only when you are doing the cs_set_user_model(id, "luffy") that you wouldn't need it.

P.S. fysiks I know you knew that, I'm just clearing it up in case anyone misunderstood.
RedRobster is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-20-2010 , 04:17   Re: Set player model through menu
Reply With Quote #5

Quote:
Originally Posted by RedRobster View Post
Well, when you precache it, you do use the .mdl extension.
It's only when you are doing the cs_set_user_model(id, "luffy") that you wouldn't need it.

P.S. fysiks I know you knew that, I'm just clearing it up in case anyone misunderstood.
Can you stop acting like a Troll Master?
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-20-2010 , 13:19   Re: Set player model through menu
Reply With Quote #6

Quote:
Originally Posted by Alka View Post
Can you stop acting like a Troll Master?
How is that being a troll? He brings up a point not yet mentioned. The model must be precached.
__________________

Last edited by fysiks; 06-20-2010 at 13:23.
fysiks is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-20-2010 , 13:44   Re: Set player model through menu
Reply With Quote #7

if i use cs_set_user_model its not required to precache the model
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-20-2010 , 13:57   Re: Set player model through menu
Reply With Quote #8

Quote:
Originally Posted by SaM.ThE.MaN View Post
if i use cs_set_user_model its not required to precache the model
Why not? Afaik if you use models you have to precache them, or you will crash your server with "model ... is not precached" or something like that.

Correct me if i'm wrong.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-20-2010 , 14:18   Re: Set player model through menu
Reply With Quote #9

umm , i dint get anything like that , even when i had 21 players on my server O.o, i used cs_set_user_model , hannah dude/girl can we be friends -.-
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-20-2010 , 14:45   Re: Set player model through menu
Reply With Quote #10

If you don't precache it nobody will have it in memory and it cannot be used (unless another plugin precached it already obviously).
__________________
fysiks 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 14:45.


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