somebody else made a variation of this but it roots the player and banishes them....but it still has errors.....and i know one of these works because if you go to exilewow.com their server has a working copy of it.....

Code:

#include"StdAfx.h"
#include"Setup.h"
#ifdef WIN32
#pragmawarning(disable:4305) 
#endif
//_____Defines____\\
#define Banish 37527
#define Paralyze 25725

void OnEnterWorld(Player * pPlayer)
{
pPlayer->BroadcastMessage("|cFF006400[Login Protection]:|r |cFF00FF00 Welcome to the Server! You've been banished! you will remain invincible for 10 seconds but unable to act.|r");
pPlayer->CastSpell(pPlayer, Banish, true);
pPlayer->AddAura(Paralyze);
// Need to add something here to remove the aura, or just not use it and Root the player?
//pPlayer->Root();
//pPlayer->UnRoot();
}


void SetupProtectLogin(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_ENTER_WORLD, OnEnterWorld);
}

heres the errors that came with it....maybe somebody can fix them,

Code:

1>..\src\ExtraScripts\Enterworld.cpp(9) : warning C4010: single-line comment contains line-continuation character
1>..\src\ExtraScripts\Enterworld.cpp(16) : error C2065: 'Banish' : undeclared identifier
1>..\src\ExtraScripts\Enterworld.cpp(17) : error C2664: 'Unit::AddAura' : cannot convert parameter 1 from 'int' to 'Aura *'