The online racing simulator
Create command !kick User Reason
I want it for one server. Thanks
and u think now we are making that for u ? FAIL !

or u dont have self-initiative

i say only learning by testing/doing


and a OVAL???!!! CRUISE SERVER??!!

maybe u have forgot that LFS is a RACING simulator
stfu I only want that command. I dont need all cruise insim -.-
ok nice that u are insulting me but i have meant the command
learn to create ur own stuff. i have learned it too
i tried to make it. I don't know where to get tutorials, i dont need to learn because i dont want to be a programmer
if u dont want to be a programmer why are u opening a cruise server?
IT'S NOT MY SERVER/TEAM. It's Mikko's server. It's Mikko's team. I only help him with insims and skins. I only want command !kick {UserName} {Reason}. I don't want to be a programmer I only want to know the basics.
Quote from stickylfs :IT'S NOT MY SERVER/TEAM. It's Mikko's server. It's Mikko's team. I only help him with insims and skins. I only want command !kick {UserName} {Reason}. I don't want to be a programmer I only want to know the basics.

Hi ,

You can use LFSLapper 5.831 and do something like this.
Every kick reason a number.

CASE "!kick1":
IF( UserInGroup( "admin",$userName ) == 1 )
THEN
privMsg " kicked for swearing " . GetPlayerVar( $argv, "Nickname" ) );
cmdLFS( "/kick " . $argv );
ENDIF
BREAK;
CASE "!kick2":
IF( UserInGroup( "admin",$userName ) == 1 )
THEN
privMsg " kicked for bad behaviour " . GetPlayerVar( $argv, "Nickname" ) );
cmdLFS( "/kick " . $argv );
ENDIF
BREAK;

And so on , or create something simular in a older version of lapper
The basically, no insim needed:

1) enter server as Admin
2) issue the following command:
/kick X :disconnect user X

If you want to send a message to the user with the reason they are being kicked you need insim. ideally, if you are already running a insim cruise server app you'd want this new command added to your existing app. Rather than running a second insim app just for this command.
Quote from Marco1 :and u think now we are making that for u ? FAIL !

or u dont have self-initiative

i say only learning by testing/doing


and a OVAL???!!! CRUISE SERVER??!!

maybe u have forgot that LFS is a RACING simulator

so why did you visit cruise servers and start your own
Play nice fellas.
If you really want it in InSim, some crappy code here (can be bugged):

In the message recieve part, split all incoming messages into pieces...

Select case msg(0)
case "!blaat"
...
case "!kick"
Send InSim command: /kick msg(1)
reason = Take your original message, Substring the !kick (=msg(0)) and the playername (=msg(1)) out
Send InSim text: reason
end select

Now it's up to you to make some good code outta this, not gonna do all your work...

Oops, won't work good if a player has white spaces in it's name, you'll have to check if that player exists, or try to use something like: !kick "Players name" Reason, so you can easily cut out the players name without having trouble with white spaces.
The sticky's cruise insim use C#.. not visual basic

I know a lot about programming, but in VB and macromedia i'm looking for a tutorial or manuals for learn C#, actualy i know a little of C but not sufficient.
Quote from KassadGLA :The sticky's cruise insim use C#.. not visual basic

W/e... The concept is the same...
Here is my command..
[Command("kick", "kick <username> <reason>")]
public void kick(string Msg, string[] StrMsg, Packets.IS_MSO MSO)
{
clsConnection Conn = Connections[GetConnIdx(MSO.UCID)];

if (StrMsg.Length > 2)
{
if (Conn.IsAdmin == 1 || Conn.IsSuperAdmin == 1 || Conn.IsModerator == 1)
{
bool KickUserfound = false;
foreach (clsConnection C in Connections)
{
string Message20 = Msg.Remove(0, C.Username.Length + 6);

if (C.Username == StrMsg[1] && StrMsg[1].Length > 1)
{
KickUserfound = true;

MsgAll("^1" + C.PlayerName + " was kicked by " + Conn.PlayerName);
MsgAll("^1Reason:^7" + Message20);
Message("/kick " + C.Username);

}
}
if (KickUserfound == false)
{
InSim.Send_MTC_MessageToConnection("^3Wrong username.", MSO.UCID, 0);
}
}

}
else
{
InSim.Send_MTC_MessageToConnection("^3Wrong command", MSO.UCID, 0);
}

}


FGED GREDG RDFGDR GSFDG