Getting spec info
I'm doing a ghost plugin for my server and I can't really figure out how to find a spectator...
Not like the team, but someone who's dead and looking at someone who's a ghost. I want to add a hud message to the one who's looking at the ghost. Somewhat like "This player is currently in Ghost-Mode". I couldn't find anything by searching. |
Re: Getting spec info
|
Re: Getting spec info
I looked at that and it really didn't tell me anything
|
Re: Getting spec info
Ah, perhaps this one: http://forums.alliedmods.net/showthread.php?p=408500
It's easier to see id's in here. |
Re: Getting spec info
I tried recreating it tho I really didn't understand the code, and it isn't working. Whats wrong?
PHP Code:
|
Re: Getting spec info
Normaly
PHP Code:
|
Re: Getting spec info
I tried Xalus's method, which didn't work. Have I done something wrong?
PHP Code:
|
Re: Getting spec info
Not sure if this is what you were thinking of doing, perhaps, its correct
Code:
show_hudmessage(id, "%s^nIs in Ghost-Mode^nTo go Ghost-Mode^nType /ghost", name); |
Re: Getting spec info
Nope,
Id = dead player, intTarget is the alive guy that ID is spectation. |
Re: Getting spec info
Quote:
|
| All times are GMT -4. The time now is 13:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.