I don't think this will work. Events are notifications of something that happened.
When the user does a "setinfo name" command, this event gets triggered. Firing this event yourself will not cause the name to change. Keeper -----Original Message----- From: Nephyrin Zey [mailto:[EMAIL PROTECTED] Sent: Thursday, May 22, 2008 5:53 AM To: Discussion of Half-Life Programming Subject: [hlcoders] Generating events from an orangebox server plugin Hey all, I'm trying to generate events from within a tf2 server plugin, but am having no luck. The code: IGameEvent *event = gameeventmanager->CreateEvent("player_changename"); if (event) { event->SetInt("userid", pi->GetUserID()); event->SetString( "oldname", pi->GetName()); event->SetString( "newname", "test"); gameeventmanager->FireEvent(event); } The result: nothing. Nobody sees a name change. It's not just the changename event, I can't seem to make any events go through. I've tried using IGameEventManager and IGameEventManager2 interfaces, no difference. My event listener hook sees the generated events go by server side, but no clients are receiving them. What am I missing here? - Neph _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders