PDA

View Full Version : Identifying Mode: Dedicated Host Mode [Demo, S1, S2]


skywatcher122
30th November 2010, 15:38
Hello guys I'm wandering if there is a packet for insim which Identifies if the host is demo, S1, S2.

Its like I want to request if its not on the current version of insim

just thinking if this request.
struct IS_DHM // Dedicated Host Mode
{

byte Mode; // 0 if demo, 1 if S1, 2 if S2


}

Regards, Kamijou.

Heiko1
30th November 2010, 16:07
yep its includet here it is

private void VER_InSimVersionInformation(Packets.IS_VER VER)
{
if (VER.Product == "S1")
{
Version = "S1";
}
if (VER.Product == "S2")
{
Version = "S2";
}
if (VER.Product == "Demo")
{
Version = "Demo";
}
}

main buffer:
string Version;


Hope it helps you

Regards Heiko1

skywatcher122
30th November 2010, 16:29
wow thanks I never though about the IS_VER is the one..

Thanks :)

Heiko1
30th November 2010, 16:31
No problem :) :thumb: