Raised This Month: $ Target: $400
 0% 

Radio commands (events)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-19-2005 , 12:15   Re: Radio commands (events)
Reply With Quote #10

Well, I meant something like:

Code:
#include <amxmodx> public plugin_init() {     register_event("TextMsg", "catch_radio", "be", "2&#Game_radio", "4&#Fire_in_the_hole")     register_event("TextMsg", "catch_radio", "be", "2&#Game_radio", "4&#Cover_me") } public catch_radio(id) {     new iByte         iByte = read_data( 1 )         new szMessage[64]         read_data( 2, szMessage, 63 )         new szParam1[32]         read_data( 3, szParam1, 31 )         // etc...         console_print( 0, "TextMsg Event Data: Byte=%d, Msg=%s, P1=%s", iByte, szMessage, szParam1 )     return PLUGIN_HANDLED }

So that you can see what the values are, and then decide if you can use them to differentiate between the event..
xeroblood is offline
Send a message via MSN to xeroblood
 



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 09:58.


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