Raised This Month: $ Target: $400
 0% 

About Radio


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
davidto1995
Member
Join Date: Jul 2010
Location: hong kong
Old 07-26-2011 , 11:20   About Radio
Reply With Quote #1

Wondering how to detect a radio is called by client.
Should "SendAudio" be hooked?
If it is, can someone show me the code?
davidto1995 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-26-2011 , 12:33   Re: About Radio
Reply With Quote #2

Look in here:

http://forums.alliedmods.net/showthread.php?p=193238
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
davidto1995
Member
Join Date: Jul 2010
Location: hong kong
Old 07-27-2011 , 02:48   Re: About Radio
Reply With Quote #3

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..
davidto1995 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-27-2011 , 12:02   Re: About Radio
Reply With Quote #4

I don't know, best result would be in trying it first.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-27-2011 , 14:50   Re: About Radio
Reply With Quote #5

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.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-27-2011 , 14:56   Re: About Radio
Reply With Quote #6

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.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 01:09.


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