Setting models on the moment, not on next spawn
Hello, guys. So I have made myself an admin menu which I use to change player's models. But my problem is that when i choose one of the options the models don't change at exactly that moment. They change on next round and on round end they don't go back to the normal. I'm using cs_set_user_model. So my point is how can I make my menu to change the player's models immediately after I choose one of the options and at round start the models to reset back to normal. Can you help me?
|
Re: Setting models on the moment, not on next spawn
I am not 100% sure but I saw this function cs_reset_user_model(player) so I believe you must call it after you call cs_set_user_model
|
Re: Setting models on the moment, not on next spawn
It's the same function but sets the player model to (player). It's not what im asking for.
|
Re: Setting models on the moment, not on next spawn
Show your code.
|
Re: Setting models on the moment, not on next spawn
Here
PHP Code:
|
Re: Setting models on the moment, not on next spawn
Quote:
For setting it back you need to hook round end and loop through all players and reset their model. |
Re: Setting models on the moment, not on next spawn
Ok, for the looping i can do it but how can i reset the models back?
|
Re: Setting models on the moment, not on next spawn
Quote:
Are you sure they don't reset automatically? |
Re: Setting models on the moment, not on next spawn
You're awesome!
|
All times are GMT -4. The time now is 07:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.