AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Client Execute with SourceMM (https://forums.alliedmods.net/showthread.php?t=39322)

za_bullet 11-21-2005 09:31

Client Execute with SourceMM
 
I knows it doable....but can't find any source for it?

Can anyone help? (devicenull???)

D.

c0ldfyr3 11-21-2005 10:03

IVEngine->ClientCommand();

Why do you want it ?

za_bullet 11-21-2005 11:03

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.

c0ldfyr3 11-21-2005 11:25

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.


All times are GMT -4. The time now is 07:19.

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