Raised This Month: $ Target: $400
 0% 

cs_set_user_model — place for call


Post New Thread Reply   
 
Thread Tools Display Modes
Old 11-17-2013, 06:06
LordOfNothing
This message has been deleted by LordOfNothing. Reason: wrong
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 11-17-2013 , 06:19   Re: cs_set_user_model — place for call
Reply With Quote #2

Quote:
Originally Posted by LordOfNothing View Post
Oh. Read what I write.
I know how to hook player Spawn and I know how to set player model.
I am looking for place better than player spawn where I should call cs_set_model function.
Phant is offline
Send a message via ICQ to Phant
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-17-2013 , 06:20   Re: cs_set_user_model — place for call
Reply With Quote #3

This is not what he wants.

To catch when sas model is applied, hook FM_SetClientKeyValue, filter when key is "model" and when value is "sas", then, check actual user model (get_user_info(id, "model", szModel, charsmax(szModel)), in case you would already have applied the model.

In both cases you supercede the function, and if actual player model is not your custom one, send set_user_info(index, "model", CUSTOM_SAS) on it.
Don't use cs_set_user_model it is buggy.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
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 23:20.


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