The online racing simulator
Weird issue with IS_JRR packets
(3 posts, started )
Weird issue with IS_JRR packets
Hey,
I'm trying to make an InSim spawn point but my code does nothing. I've added ISF_REQ_JOIN to my IS_ISI flags and I've binded the event but nothing's happening? It works just fine if I add it to a command, though.

insim.Bind<IS_JRR>(JoinRequest);


Flags = InSimFlags.ISF_MCI | InSimFlags.ISF_MSO_COLS | InSimFlags.ISF_REQ_JOIN,


static void JoinRequest(InSim insim, IS_JRR jrr)
{
insim.Send(new IS_JRR
{
ReqI = 0,
JRRAction = JrrAction.JRR_SPAWN,
PLID = jrr.PLID,
UCID = jrr.UCID,
StartPos = { Heading = 255, X = -1644, Y = -2259, Zbyte = 17, Index = 0, Flags = 0x80 }
});
insim.Send("/msg Join request approved.");
}

I must be missing something?
Quote :// A join request is seen as an IS_NPL packet with ZERO in the NumP field


<?php 
 
static void NPL(InSim insimIS_NPL npl)
        {
            if (
npl.NumP == 0)
            {
                
insim.Send(new IS_JRR
                
{
                    
ReqI 0,
                    
JRRAction JrrAction.JRR_SPAWN,
                    
PLID npl.PLID,
                    
UCID npl.UCID,
                    
StartPos = { Heading 255= -1644= -2259Zbyte 17Index 0Flags 0x80 }
                });
                
insim.Send("/msg Join request approved.");
            }
        }
?>

Something like this I think.

Edit: and instead of insim.Bind<IS_JRR>(JoinRequest); put insim.Bind<IS_NPL>(NPL);
Something so obvious lol! Wink That worked, cheers Smile

Weird issue with IS_JRR packets
(3 posts, started )
FGED GREDG RDFGDR GSFDG