Team Flash Snitch
2 Attachment(s)
Team Flash Snitch
Description: When teamflashed, this plugin announces who flashed you. The teamflasher hears "I'm blind!" and gets a message of who he flashed. It is also displayed for admins if someone is fully teamflashed. Tested on Counter-Strike and Condition Zero servers. This does NOT work for 100%... but almost :-) Cvars: tfs_adminchat 0 - admins will not be aware 1 - admins gets an adminchat of who flashed who tfs_sound: Teamflasher hears "I'm blind!", default 1 (CZ bot radio) 0 - Sound Off 1 - Sound On Changelog: 1.1 - fixed bug: more than one player can get a message from the same teamflash event, new cvar: tfs_adminchat (2007-11-04) 1.0 - sound on/off cvar: tfs_sound 1/0 (2006-04-14) 0.3 - fixed bug: dead spectators will nog get message about teamflash (2006-03-16) 0.2 - changed flash owner code, a timer is added, "[Team Flash Snitch]" in green text (2006-03-12) 0.1 - initial release (2006-01-25) Credits: Johnny got hes gun, his plugin "Blind" helped me writing this. www.paike.org for testing this plugin on paike servers, it has been running for almost two years now. The zip contains sma, amxx and the soundfile im_blind.wav (not needed for CZ) |
Re: Team Flash Snitch
What happens if you flash multiple people?
|
Re: Team Flash Snitch
Then you get multiple messages:
[Team Flash Snitch] You totally flashed a teammate (paikebot - Connor) [Team Flash Snitch] You flashed a teammate (paikebot - Ethan) [Team Flash Snitch] You totally flashed a teammate (paikebot - Ian) [Team Flash Snitch] You totally flashed a teammate (paikebot - Ted) |
Re: Team Flash Snitch
Would you hear the sound multiple times? "spk" commands overlap and hurt the ears
|
Re: Team Flash Snitch
Not really, but technically yes. The sounds are executed at the same time, so you wont hear any overlaps.
|
Re: Team Flash Snitch
Quote:
|
Re: Team Flash Snitch
Isn't that a good punishment? ;-)
|
Re: Team Flash Snitch
You could modify the code with an extra boolean and a timer if you like...
add a new global... Code:
new bool:sound_active = falseCode:
if(get_cvar_num("tfs_sound")>0) client_cmd(g_flasher,"spk sound/radio/bot/im_blind.wav")Code:
if(get_cvar_num("tfs_sound")>0 && !sound_active ){Code:
public sound_completed(){ |
Re: Team Flash Snitch
Someone requested a plugin like this the other day. Very interesting to see this.
|
Re: Team Flash Snitch
If more than 1 flash are throwed at the same time, will show to all flashed players the last owner. :s
|
| All times are GMT -4. The time now is 10:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.