percent & fix the hitboxs
1 Attachment(s)
i need help to make an if more then 40% of all users are dead , do just a print.
somthing like this :D im not good in mathematics :D & how can i edit the hitboxs. my problem is my model is bigger the players hitboxs & when i please is realy near to a wall, he can watch the other site of map. |
Re: percent & fix the hitboxs
PHP Code:
|
Re: percent & fix the hitboxs
ty
:D Quote:
|
Re: percent & fix the hitboxs
Replace
( ( iDead / iNum ) * 100 ) with ( ( iDead * 100 ) / iNum ) |
Re: percent & fix the hitboxs
Quote:
Quote:
|
Re: percent & fix the hitboxs
Quote:
If you really need to use get_players(), you should use this. Quote:
Either way works. I would use the first option. The second looks better though. If it weren't for that useless Players array I would've used that. PHP Code:
PHP Code:
|
Re: percent & fix the hitboxs
Quote:
Should be: Code:
|
Re: percent & fix the hitboxs
My bad, originally the code was like this:
if ( ! is_user_connected(i) || is_user_alive(i) ) continue; I forgot to edit that. |
Re: percent & fix the hitboxs
I think get_playersnum returns HLTVs.
xPaw's way then is better than yours. |
Re: percent & fix the hitboxs
Quote:
|
| All times are GMT -4. The time now is 18:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.