[solved] spectator change player
Well, I found a code that can detect if a player spectates in a certain mode... but not if he switches the player in that mode, what's the best way to detect WHEN a spectator views another player than the old one in the same spec mode ?
the code I got 'till now: PHP Code:
|
Re: spectator change player
Well, I just maked a global thinking entity and checked every time the user's 1&2 if they are any different from the ones 0.05 seconds ago :}
If anyone has an alternative better way, I'm all... eyes :P |
Re: spectator change player
See admin_sep player, or joaquim pseudo wallhack plugin, both use 2 event to detect spectated player.
|
Re: spectator change player
oohhh, forgot about those xD... aaaaand found it, the event is StatusValue ... testing it out :P thx :crab:
edit: yep, works fine, StatusValue and SpecHealth2 to update the player and TextMsg with arg2 at Spec_Mode to update the mode... :} |
| All times are GMT -4. The time now is 01:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.