![]() |
Showing clientside stuff
Have also been trying to show certain things when you hover over players.
i have a script that does something like PHP Code:
PHP Code:
I've tried PHP Code:
|
You can't view other players flags clientside, you're best option is to save the var as an attr (player.attr[#]) which can be read from other players clients
|
(sorry for the slow reply)
The problem with what you want to do is that there's no way to access another player's client or clientr variables from clientside. The reason for this is because it would require far too much bandwidth to transfer all of this data every time a player logs on or enters a new level. However, you can place certain values in something called the "attr" array. Values in the "attr" array can be accessed by another player as long as they are in the same level. In order to place clientr.guild in one of the player's attrs, you would need to update it each time the player's "clientr.guild" flag changes. PHP Code:
Then, when you want to access another player's guild, you can use a script like PHP Code:
Also, instead of using players[i].value, you can use a "for each" loop. Quote:
PHP Code:
Notice that this: PHP Code:
PHP Code:
Sorry for the long post, I hope it answers your questions. And as always, sorry if I come off as condescending. |
Not condescending at all, and thanks to both of you. Needed to actually learn what attr[#] was and how to make it work. :)
|
All times are GMT +2. The time now is 07:53 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.