Player Radius Issues
So.... If you are within the radius of another player your screen is spammed with hud_messages "You are within.......blah blah...", of all the players you are close too. At the same time your screen is spammed with hud_messages "You are NOT within... blah blah...", of all the players you are NOT close too.
Code:
I am trying to figure out how to make the "NOT WITHIN" hud_messages not override the "WITHIN" messages.. The player does'nt need to see he is not "WITHIN" another players radius if he is currently "WITHIN" a players radius. Hud channels and/or coodernates is not what I'm looking to get help in here. I need someone to show me some code that would not permit the "NOT WITHIN" function from being ran IF there is currently a "WITHIN" function being ran on the player. (id) I've been messing with it for a few now and just get caught in these stupid loops of dumbness... Heck even if there's another better way to do what I'm looking for.. thanks for your help.. |
Re: Player Radius Issues
maybe try this one...but i think there are ways to optimize this function...
I have cuted "if( (is_user_alive(players[i]) && is_user_alive(id)) && (is_user_connected(players[i]) && is_user_connected(id)) )" this out because of this --> get_players(players, num, "a") You already get alive("a") players....and to be alive you have to be connected ;) Code:
|
Re: Player Radius Issues
thank you. that did the trick
|
| All times are GMT -4. The time now is 06:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.