Raised This Month: $ Target: $400
 0% 

mattie event script dead chat?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sniper_strike
Senior Member
Join Date: Jan 2005
Old 06-30-2005 , 13:30   mattie event script dead chat?
Reply With Quote #1

is it possible to get dead chat where
when your alive all talk is off and when your dead all talk is on

with matties event scripts

Code:
Code:
/* AMX Mod script.
*
* DeadChat by SuicideDog
* This file is provided as is (no warranties).
* This plugin will allow you to voice chat the other team when you are dead.
* Basically it turns on "all talk" to only the dead people, but people that alive
* can't hear any of the dead ppl.
*
* This plugin is good for those more social servers!
*
*/


#include <amxmodx>
#include <engine>

public death(){
      if ( get_cvar_num("amx_deadchat")!=1 ) return PLUGIN_CONTINUE
      new id = read_data(2)
      set_speak(id, SPEAK_LISTENALL)
      client_print(id,print_center,"You are dead now, you can chat with other team via voice")
      return PLUGIN_CONTINUE
}   
public alive(id){
      if ( get_cvar_num("amx_deadchat")!=1 ) return PLUGIN_CONTINUE
      set_speak(id, SPEAK_NORMAL)
      return PLUGIN_CONTINUE
}
 
public plugin_init() {
   register_plugin("Dead_Can_Talk","0.1","SuicideDog")
   register_event("DeathMsg","death","a")
   register_event("ResetHUD","alive","b")
   register_cvar("amx_deadchat","1")
}
__________________

66.150.188.42:27015
sniper_strike is offline
ajax
Veteran Member
Join Date: Jan 2005
Old 06-30-2005 , 17:44  
Reply With Quote #2

..
ajax is offline
blade81
Senior Member
Join Date: Apr 2005
Old 06-30-2005 , 18:13  
Reply With Quote #3

Nemod supports this feature too! try nemod ;)
blade81 is offline
awuh0
Senior Member
Join Date: Apr 2005
Location: /dev/null
Old 06-30-2005 , 21:20  
Reply With Quote #4

If you want to emulate it you can with es...
of cource it will display double to people who can here it
player_say.cfg
Code:
es_msg event_var(es_username) : event_var(text)
you could do a long set of if checks with player teams and dead or alive, but I dont think its workth it as I just want to toss this out there real fast. Not write a half a page of code.
__________________
~The_wUh
_________________
Ph34r teh zombies!!!
find a better way to play CSS, connect to...
thewuh.servebeer.com
thecircus.servebeer.com
awuh0 is offline
Send a message via ICQ to awuh0 Send a message via AIM to awuh0 Send a message via MSN to awuh0
ajax
Veteran Member
Join Date: Jan 2005
Old 07-01-2005 , 01:09  
Reply With Quote #5

Quote:
Originally Posted by awuh0
If you want to emulate it you can with es...
of cource it will display double to people who can here it
player_say.cfg
Code:
es_msg event_var(es_username) : event_var(text)
you could do a long set of if checks with player teams and dead or alive, but I dont think its workth it as I just want to toss this out there real fast. Not write a half a page of code.
i think he means alltalk for use with the microphone, not text.
ajax is offline
awuh0
Senior Member
Join Date: Apr 2005
Location: /dev/null
Old 07-01-2005 , 11:05  
Reply With Quote #6

ohhh I see..

well thats what I get for not paying attention...
__________________
~The_wUh
_________________
Ph34r teh zombies!!!
find a better way to play CSS, connect to...
thewuh.servebeer.com
thecircus.servebeer.com
awuh0 is offline
Send a message via ICQ to awuh0 Send a message via AIM to awuh0 Send a message via MSN to awuh0
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 07-02-2005 , 22:10  
Reply With Quote #7

Quote:
Originally Posted by blade81
Nemod supports this feature too! try nemod ;)
__________________
ichthys is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode