Raised This Month: $ Target: $400
 0% 

Change model (other way)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 07-15-2013 , 11:43   Change model (other way)
Reply With Quote #1

Hi, so I was wondering is it possible to change player model when he spawns, I mean like hook FM_SetModel pre post and change model info, that when FM_SetModel post is being executed, it would change model to one that I want. Maybe this way the server wouldn't crash so often :/
__________________
and once again

Last edited by usaexelent; 07-15-2013 at 11:50.
usaexelent is offline
Send a message via Skype™ to usaexelent
Old 07-18-2013, 05:12
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 07-19-2013 , 10:46   Re: Change model (other way)
Reply With Quote #2

dumb answer, that's not what I'm asking.
__________________
and once again
usaexelent is offline
Send a message via Skype™ to usaexelent
1023168216
Member
Join Date: Jun 2013
Location: Tokyo
Old 07-22-2013 , 07:38   Re: Change model (other way)
Reply With Quote #3

of course.for example:if you want to change player model into another model that is "models/player/new/new.mdl"

cs_set_user_model(id, "new")
set_pev(id,pev_model,"models/player/new/new.mdl")
1023168216 is offline
Smatify
Senior Member
Join Date: Nov 2012
Location: Where ever you want
Old 07-22-2013 , 07:54   Re: Change model (other way)
Reply With Quote #4

or
PHP Code:
set_user_info(id"model""models/player/new/new.mdl"
__________________
Selling Hosting stuff such as Webspace and Game- & VoiceServer

I'm also selling Steam Keys.
For more informations, contact me.

(Homepage is under development)

Last edited by Smatify; 07-22-2013 at 07:54.
Smatify is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 07-22-2013 , 08:51   Re: Change model (other way)
Reply With Quote #5

Quote:
Originally Posted by Smatify View Post
or
PHP Code:
set_user_info(id"model""models/player/new/new.mdl"
You can't use full path, it use folder name only. In your case "new".
yokomo is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 07-22-2013 , 09:33   Re: Change model (other way)
Reply With Quote #6

Add some delay when changing model.
Its bad too change all players model in once ( in same frame... ), use set_task or something...

Last edited by .Dare Devil.; 07-22-2013 at 09:33.
.Dare Devil. 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 06:23.


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