Code:

DLLFUNC int ERender_Eentity()
{
// Get all data
ENTITY* pEntity = (ENTITY*)ev->me;
BMAP* pSkin = (BMAP*)ev->render_map[0];
LPD3DXMESH pMesh = (LPD3DXMESH)ev->render_mesh;
D3DMATERIAL9* pMaterial = (D3DMATERIAL9*)ev->render_d3dmaterial;
LPD3DXEFFECT pEffect = (LPD3DXEFFECT)ev->render_d3dxeffect;
IDirect3DDevice9* pd3dDevice = (IDirect3DDevice9*)ev->pd3ddev;

struct VERTICES{float x, y, z, w;};
VERTICES v[2];
v[0].x = 100; v[0].y = 100; v[0].z = 0.0; v[0].w = 1.0;
v[1].x = 200; v[1].y = 100; v[1].z = 0.0; v[1].w = 1.0;
// open the scene and get the active D3D device
draw_begin();
if(!pd3dDevice) return 0;

pd3dDevice -> SetRenderState(D3DRS_LASTPIXEL, FALSE);
pd3dDevice -> SetRenderState(D3DRS_CLIPPING, FALSE);
pd3dDevice -> SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_DISABLE);
// Render line on-screen
pd3dDevice -> SetFVF(D3DFVF_XYZW);
pd3dDevice -> DrawPrimitiveUP(D3DPT_LINELIST, 1, static_cast<LPVOID>(v), sizeof(VERTICES));

return 1;
}

DLLFUNC void ERender_Init()
{
ev->mat_model->event = reinterpret_cast<EVENT>(ERender_Eentity);
ev->mat_model->flags |= ENABLE_RENDER;
}



This pice does sth and returns 1. I tried it the Init and the Xerxes way, both failed. I know, it does work for 1000+ people, but I still donīt get it

p.s nope, lostclimate, but I didnīt looked long at it, my mum has b-day
pp.s two germans speaking english... interesting