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.
I must be missing something?
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?