AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   About Radio (https://forums.alliedmods.net/showthread.php?t=163068)

davidto1995 07-26-2011 11:20

About Radio
 
Wondering how to detect a radio is called by client.
Should "SendAudio" be hooked?
If it is, can someone show me the code?

bibu 07-26-2011 12:33

Re: About Radio
 
Look in here:

http://forums.alliedmods.net/showthread.php?p=193238

davidto1995 07-27-2011 02:48

Re: About Radio
 
according to sma, can i use register_event instead of using register_message?
PS:i just type in register_message("SendAudio", "msg_send_audio")//...

register_message(get_user_msgid("SendAudio"), "msg_send_audio")//this should be correct..

bibu 07-27-2011 12:02

Re: About Radio
 
I don't know, best result would be in trying it first.

drekes 07-27-2011 14:50

Re: About Radio
 
register_message() gets called before it is sent, so you can alter the values of it or block it.
register_event() hooks the event after it is sent.

ConnorMcLeod 07-27-2011 14:56

Re: About Radio
 
Radio is loop through all team, better to check commands and menu, check if user is alive, and if m_flNextRadio is < gametime, and if m_iRadioLeft is > 0.


All times are GMT -4. The time now is 01:09.

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