How can you make it return false when the function is a void? > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Stephen Swires > Sent: 01 April 2006 23:37 > To: [email protected] > Subject: Re: [hlcoders] Remove event "player_say" (Source > Server Plugin) > > This is a multi-part message in MIME format. > -- > [ Picked text/plain from multipart/alternative ] Did you try > and make it return false? Might not work but is worth a shot. > > Bob Lach wrote: > > >-- > >[ Picked text/plain from multipart/alternative ] who do you want the > >event to reach? > > > >On 4/1/06, Paul Kirby <[EMAIL PROTECTED]> wrote: > > > > > >>Hello All > >> > >>Just a quick question... > >> > >>I can retrieve the "player_say" event using the following: > >> > >>void CEmptyServerPlugin::FireGameEvent( KeyValues * event ) { > >> const char * name = event->GetName(); > >> Msg( "CEmptyServerPlugin::FireGameEvent: Got event > \"%s\"\n", name > >>); > >> if (FStrEq(name,"player_say")) > >> { > >> Msg("ALERT(GetString): UserID(%d) said: %s = %s\n" > >> ,event->GetInt("userid",0) > >> ,name > >> ,event->GetString("text","(*not defined*)") > >> ); > >> > >> if(FStrEq(event->GetString("text","(*not > defined*)"),"filtered_word")) > >> { > >> /* Code to remove event */ > >> } > >> } > >>} > >> > >>But how do I remove the "player_say" event from reaching the other > >>players? > >> > >>Thanks in advance. > >> > >>Paul > >> > >> > >> > >>_______________________________________________ > >>To unsubscribe, edit your list preferences, or view the > list archives, > >>please visit: > >>http://list.valvesoftware.com/mailman/listinfo/hlcoders > >> > >> > >> > >> > >-- > > > >_______________________________________________ > >To unsubscribe, edit your list preferences, or view the list > archives, please visit: > >http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders >
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

