The online racing simulator
Insim detecting commands?
So there is a new "ban hack" tool wondering around the internet for lfs that enables the vote kick/ban in any server , which is a bad for cruise servers

So i was wondering if its possible to make the insim detect when the /vote=yes and change the server to vote=no with

InSim.Send_MST_Message("/vote=no");


EDIT:
I was thinking like this
if (HOSTF_CAN_VOTE == 1)
{
InSim.Send_MST_Message ("/vote=no");
}

But I don't know in which packet to put it , Can someone help me ?
Is part of IS_REO

But eehh.. Vote flag hack? Are you sure?
Very sure.

They also sent a link to a member on the cruise server that was supposed to be the hack, and then without even clicking the file they hacked his account ,

Next thing I know the guy was using the member's account banning everyone from the server

EDIT: Looks like nothing happens when i set /vote=yes

And I don't know how to make the insim detect commands that starts with /
Quote from ADr3nAl1n :and then without even clicking the file they hacked his account ,

I don't think this is possible...

But anyway... I looked it up for you... If somebody does an / admin command the IS_ACR packet is being used for that.


<?php 
class IS_ACR extends Struct // Admin Command Report - any user typed an admin command
{
    const 
PACK 'CCxxCCxxa64';
    const 
UNPACK 'CSize/CType/xReqI/xZero/CUCID/CAdmin/CResult/xSp3/a64Text';

    protected 
$Size 72;                # 72
    
protected $Type ISP_ACR;            # ISP_ACR
    
protected $ReqI 0;                # 0
    
protected $Zero NULL;

    public 
$UCID;                        # connection's unique id (0 = host)
    
public $Admin;                        # set if user is an admin
    
public $Result;                        # 1 - processed / 2 - rejected / 3 - unknown command
    
private $Sp3;

    public 
$Text;
}; function 
IS_ACR() { return new IS_ACR; }
?>

Thats the definition in PRISM .. I assume $Text contains the actual command..

So you need to make an insim detect that packet.. Let it read what text command is used and take action on that.
-
(osteriossi) DELETED by osteriossi
I'm not familiar with PRISM , I don't think my insim has anything to do with prism

struct IS_ACR // Admin Command Report - any user typed an admin command
{
byte Size; // 72
byte Type; // ISP_ACR
byte ReqI; // 0
byte Zero;

byte UCID; // connection's unique id (0 = host)
byte Admin; // set if user is an admin
byte Result; // 1 - processed / 2 - rejected / 3 - unknown command
byte Sp3;

char Text[64];
};

But I don't understand what to add in the IS_APR packet , and IS_APR is missing from lfs external packets
Quote from kappa007 :guys did you also told them you have cracked your LFS. and you drive online.
certainly that wouldnt happen if you use official master server

http://pereulok.net.ru/lfsp/#users/detail/jann3[fin] -Mater
http://pereulok.net.ru/lfsp/#users/detail/ADr3nAl1n -adrenalin

http://pereulok.net.ru/lfsp/#online
server is
[SCS]Cruise City S2

and add code

if(user_from_russia) //checks if user from russia
ban=999; //ban him for 999 days

RUSSIAN CRUISE hackers <3

You are playing there too .
And thank you for the code its very helpful ._.
Quote from ADr3nAl1n :I don't think my insim has anything to do with prism

It was just an example.

Quote from kappa007 :guys did you also told them you have cracked your LFS. and you drive online.
certainly that wouldnt happen if you use official master server

Out of here.
#11 - PoVo

FGED GREDG RDFGDR GSFDG