Raised This Month: $ Target: $400
 0% 

Could'nt register_clcmd("+voicerecord"....)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
larnk
Member
Join Date: Dec 2004
Old 01-24-2005 , 08:33   Could'nt register_clcmd("+voicerecord"....)
Reply With Quote #1

I want to catch when a player use voice comm..
I tried to use

register_clcmd("+voicerecord","cmdVoiceComm")

but it do not work, the coide in function "cmdVoiceComm" is not executed..
larnk is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 01-24-2005 , 09:26  
Reply With Quote #2

you can't catch client command prefixed with "+"
FeuerSturm is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 01-24-2005 , 12:31  
Reply With Quote #3

Let's be more specific: You can't catch commands that are handled client-side. This one is an example of such commands ;)
__________________
hello, i am pm
PM is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-24-2005 , 22:37  
Reply With Quote #4

But eventually the voice message is sent to the server and then relayed back to the clients, is it not? Is there any way to catch that?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
larnk
Member
Join Date: Dec 2004
Old 01-25-2005 , 04:00  
Reply With Quote #5

I notice there is a error message:

Cmd_AddCommand: +voicerecord already define

Wether I can override the client command?
larnk is offline
Casio
Member
Join Date: Jan 2005
Old 04-09-2005 , 14:12  
Reply With Quote #6

I tried to use this method but to try and develop my own "gag" command but I failed as you did, I ended up sticking with the next best thing - AdminModX's Gag command.
When that Gag command is executed on someone they cannot use their mics anywhere nor can they hear mics anywhere. Unfortunately if you know the code for AdminModX's Gag command you can very easily "un-gag" yourself .
Casio is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-09-2005 , 15:48  
Reply With Quote #7

No, you cannot ungag yourself. It sets voice_enable (although that may actually be the serverside command, it might be a different one on client-side that it actually changes... can't remember) to 0. Setting it back to 1 does nothing until you restart the game.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 19:28.


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