cs_set_user_model
Hello! I have this code
PHP Code:
PHP Code:
|
Re: cs_set_user_model
Because there's no "id" defined anywhere so it's 0. Even if you did put it in set_task, "round start" is a global event and there is no "id".
Why are you doing this in "round start" instead of "player spawn" event? |
Re: cs_set_user_model
because player spawn would give me an server console error that say "Invalid player 1" or any other number. i will try something and i will repost it here
|
Re: cs_set_user_model
Ok, i tried what u said to me and now it's working. but i have another question.
it's neccesarly to use "cs_reset_user_model" before "cs_set_user_model" or i can just use set user model |
Re: cs_set_user_model
also, i have another problem.
skin "alqaeda" is a model for terrorist if i have that model enabled when i'm terrorist. some players see me as a default counter-terrorist models. I don't have the same problem as them and i don't know why this is happening. what should i do ? this is skincheck code PHP Code:
|
Re: cs_set_user_model
Quote:
Quote:
Quote:
Or you didn't upload the files on your server/downloadurl or players use "cl_minmodels 1". |
Re: cs_set_user_model
PHP Code:
|
Re: cs_set_user_model
Why "sizeof - 1"? There's your problem. The last skin isn't registered because of the "-1".
Also, I'd suggest using a better function to handle this: Code:
Some models have an additional T.mdl file. This one takes it in mind, plus it only requires the model name as an argument, same as "cs_set_user_model". |
Re: cs_set_user_model
Thank you! that -1 was the problem. Thank you a lot man.
|
| All times are GMT -4. The time now is 14:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.