Re: Admin Mark
Hum, really nice plugin :)
|
Re: Admin Mark
Code:
Terrible. Make a global array which stores all these names, then run a loop checking if it's each one. If it is, set model ID to the iterator's value. I'm willing to hold this back for this optimization alone. Please do it within a week or I will unapprove this. |
Re: Admin Mark
OK, I'll try.
|
Re: Admin Mark
Why not just make it as a stock? like:
Code:
btw, the beret looks like a seat cushion on their head lol. |
Re: Admin Mark
Because this would not optimize the code.
|
Re: Admin Mark
Quote:
I would assume just making an array of what model ID they have at the round start would suffice. It might temporarily display the wrong helmet for the remainder of a round if an admin uses a command to force a model change, but that'd be a small price to pay for the overhead reduction. |
Re: Admin Mark
Quote:
|
Re: Admin Mark
Eh fine then you can do it like this too:
Code:
This also begs the question, as a GENERAL rule how many ifs would it be before it's a better idea to use a loop instead? |
Re: Admin Mark
Plugin updated!
|
Re: Admin Mark
1.Don't use "stock" at get_model(id).
2.like sawce said Quote:
|
All times are GMT -4. The time now is 07:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.