Raised This Month: $12 Target: $400
 3% 

Client Execute with SourceMM


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
za_bullet
Junior Member
Join Date: Nov 2005
Old 11-21-2005 , 09:31   Client Execute with SourceMM
Reply With Quote #1

I knows it doable....but can't find any source for it?

Can anyone help? (devicenull???)

D.
za_bullet is offline
Send a message via AIM to za_bullet
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 11-21-2005 , 10:03  
Reply With Quote #2

IVEngine->ClientCommand();

Why do you want it ?
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
za_bullet
Junior Member
Join Date: Nov 2005
Old 11-21-2005 , 11:03  
Reply With Quote #3

I'll need to look over your response and the code to see if that's that I want, but basically want to do server redirects in certain cases.

e.g. Want to force an connect w.x.y.z:pppp on clients to move them to another server.

D.
za_bullet is offline
Send a message via AIM to za_bullet
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 11-21-2005 , 11:25  
Reply With Quote #4

Code:
SomePlugin::ClientConnect( edict_t *pEntity )
{
	IVEngine->ClientCommand( pEntity, "connect xxx.xxx.xxx.xxx:27015\n" );
	META_RETURN( MRES_HANDLED ); //Maybe IGNORED...
}
Providing you have hooked ClientConnect, if ClientConnect is too early, try hooking ClientActive instead.
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
Reply


Thread Tools
Display Modes

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 19:08.


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