private void CON_CarContact(Packets.IS_CON CON)
{
try
{
clsConnection CrashID1 = Connections[GetConnIdx2(CON.A.PLID)];
clsConnection CrashID2 = Connections[GetConnIdx2(CON.B.PLID)];
MsgAll("^2Collision Detected!");
MsgAll("^2Collision: " + Connections[GetConnIdx2(CON.A.PLID)] + " ^2hit " + Connections[GetConnIdx2(CON.B.PLID)] + " ^2 And killed him and raped him");
}
catch { }
}
MsgAll("^2Collision: " + Connections[GetConnIdx2(CON.A.PLID)] + " ^2hit " + Connections[GetConnIdx2(CON.B.PLID)] + " ^2 And killed him and raped him");
string TempCars1 = "^7*^2* ^7UF1 ^7XFG ^7XRG ^7LX4";
string TempCars2 = "^7LX6 ^7RB4 ^7FXO ^7XRT ^7RAC ^7FZ5";
string TempCars3 = "^7UFR ^7XFR ^7FXR ^7XRR ^7FZR";
string TempCars4 = "^7MRT ^7FBM ^7FOX ^7FO8 ^7BF1 ^2*^7*";
InSim.Send_BTN_CreateButton(TempCars1, Flags.ButtonStyles.ISB_C1, 4, 45, 0, 49, 9, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars2, Flags.ButtonStyles.ISB_C1, 4, 45, 0, 68, 10, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars3, Flags.ButtonStyles.ISB_C1, 4, 40, 0, 90, 11, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars4, Flags.ButtonStyles.ISB_C1, 4, 40, 0, 110, 12, C.UniqueID, 2, false);
string TempCars1 = "^7*^2* ^7UF1 ^7XFG ^7XRG ^7LX4";
string TempCars2 = "^7LX6 ^7RB4 ^7FXO ^7XRT ^7RAC ^7FZ5";
string TempCars3 = "^7UFR ^7XFR ^7FXR ^7XRR ^7FZR";
string TempCars4 = "^7MRT ^7FBM ^7FOX ^7FO8 ^7BF1 ^2*^7*";
InSim.Send_BTN_CreateButton(TempCars1, Flags.ButtonStyles.ISB_C1, 4, 45, 0, 49, 9, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars2, Flags.ButtonStyles.ISB_C1, 4, 45, 0, 68, 10, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars3, Flags.ButtonStyles.ISB_C1, 4, 40, 0, 90, 11, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars4, Flags.ButtonStyles.ISB_C1, 4, 40, 0, 110, 12, C.UniqueID, 2, false);
// TempCars 1
if (C.Cars.Contains("UF1"))
{
TempCars1 = TempCars1.Replace("^7UF1", "^2UF1");
}
if (C.Cars.Contains("XFG"))
{
TempCars1 = TempCars1.Replace("^7XFG", "^2XFG");
}
if (C.Cars.Contains("XRG"))
{
TempCars1 = TempCars1.Replace("^7XRG", "^2XRG");
}
if (C.Cars.Contains("LX4"))
{
TempCars1 = TempCars1.Replace("^7LX4", "^2LX4");
}
// TempCars2
if (C.Cars.Contains("LX6"))
{
TempCars2 = TempCars2.Replace("^7LX6", "^2LX6");
}
if (C.Cars.Contains("RB4"))
{
TempCars2 = TempCars2.Replace("^7RB4", "^2RB4");
}
if (C.Cars.Contains("FXO"))
{
TempCars2 = TempCars2.Replace("^7FXO", "^2FXO");
}
if (C.Cars.Contains("XRT"))
{
TempCars2 = TempCars2.Replace("^7XRT", "^2XRT");
}
if (C.Cars.Contains("RAC"))
{
TempCars2 = TempCars2.Replace("^7RAC", "^2RAC");
}
if (C.Cars.Contains("FZ5"))
{
TempCars2 = TempCars2.Replace("^7FZ5", "^2FZ5");
}
// TempCars3
if (C.Cars.Contains("UFR"))
{
TempCars3 = TempCars3.Replace("^7UFR", "^2UFR");
}
if (C.Cars.Contains("XFR"))
{
TempCars3 = TempCars3.Replace("^7XFR", "^2XFR");
}
if (C.Cars.Contains("FXR"))
{
TempCars3 = TempCars3.Replace("^7FXR", "^2FXR");
}
if (C.Cars.Contains("XRR"))
{
TempCars3 = TempCars3.Replace("^7XRR", "^2XRR");
}
if (C.Cars.Contains("FZR"))
{
TempCars3 = TempCars3.Replace("^7FZR", "^2FZR");
}
// TempCars 4
if (C.Cars.Contains("MRT"))
{
TempCars4 = TempCars4.Replace("^7MRT", "^2MRT");
}
if (C.Cars.Contains("FBM"))
{
TempCars4 = TempCars4.Replace("^7FBM", "^2FBM");
}
if (C.Cars.Contains("FOX"))
{
TempCars4 = TempCars4.Replace("^7FOX", "^2FOX");
}
if (C.Cars.Contains("FO8"))
{
TempCars4 = TempCars4.Replace("^7FO8", "^2FO8");
}
if (C.Cars.Contains("BF1"))
{
TempCars4 = TempCars4.Replace("^7BF1", "^2BF1");
}
private void CON_Contact(Packets.IS_CON CON)
{
try
{
clsConnection Conn = Connections[GetConnIdx(CON.UCID)].PlayerName;
clsConnection Conn2 = Connections[GetConnIdx(Connections[CON.UCID].PlayerNameHit)];
}
catch { }
}
Error 1 'LFS_External.Packets.IS_CON' does not contain a definition for 'UCID' and no extension method 'UCID' accepting a first argument of type 'LFS_External.Packets.IS_CON' could be found (are you missing a using directive or an assembly reference?) C 1875 65 OC Insim
<?php
case 166: // Withdraw
{
int Withdraw = int.Parse(BTT.Text);
if (BTT.Text.Contains("-"))
{
InSim.Send_MTC_MessageToConnection("^6»^7 Witdraw Error. Please don't use minus values!", BTC.UCID, 0);
}
if (Withdraw > 10001)
{
InSim.Send_MTC_MessageToConnection("^6»^7 Maximum Withdraw of ^2$10000^7!", BTC.UCID, 0);
}
else
{
if (Connections[GetConnIdx(BTC.UCID)].TotalBankCash > Withdraw)
{
Connections[GetConnIdx(BTC.UCID)].TotalBankCash -= Withdraw;
Connections[GetConnIdx(BTC.UCID)].Cash += Withdraw;
InSim.Send_MTC_MessageToConnection("^6»^7 You have succesfully withdrawn ^2$" + Withdraw + " ^7from the bank.", BTC.UCID, 0);
InSim.Send_BTN_CreateButton("^7Your bank balance is ^2$" + Connections[GetConnIdx(BTC.UCID)].TotalBankCash, Flags.ButtonStyles.ISB_LEFT, 4, 40, 65, 54, 163, BTC.UCID, 2, false);
}
else
{
InSim.Send_MTC_MessageToConnection("^6»^7 You don't have enough cash to complete the transaction.", BTC.UCID, 0);
}
}
}
break;
?>
<?php
int Withdraw = int.Parse(BTT.Text);
if (BTT.Text.Contains("-"))
?>
<?php
Error 1 The name 'BTT' does not exist in the current context
?>
<?php
case "!deaddmember":
if (StrMsg.Length > 1)
{
if (Connections[GetConnIdx(MSO.UCID)].IsAdmin == 1)
{
StreamReader ApR = new StreamReader(UserInfo + "\\groups\\member.txt");
string TempAPR = ApR.ReadToEnd();
ApR.Close();
StreamWriter Ap = new StreamWriter(UserInfo + "\\groups\\member.txt");
Ap.Write(TempAPR + "Member = None");
Ap.Flush();
Ap.Close();
InSim.Send_MST_Message("/msg ^2-^7 " + Msg.Remove(0, 11) + " has been removed from ^2member");
foreach (clsConnection C in Connections)
{
if (C.Username == Msg.Remove(0, 11))
{
C.IsMember = 0;
}
}
}
else
{
InSim.Send_MTC_MessageToConnection("^1You are not allowed to use this command!", MSO.UCID, 0);
}
}
break;
?>
<?php
NewConn.TotalBankCash = FileInfo.GetUserTotalBankCash(NCN.UName);
?>
public long Cash
{
get { return _cash; }
set { _cash = value; }
}
NCN - Index and length must refer to a location within the string. Parameter name : length
InSim.Send_BTN_CreateButton("^7Welcome to ^5Kinder^7Garten", Flags.ButtonStyles.ISB_LIGHT, 7, 98, 51, 51, 132, Conn.UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^7Welcome to ^5Kinder^7Garten", Flags.ButtonStyles.ISB_LIGHT, 7, 98, 51, 51, 300, Conn.UniqueID, 2, false);
The best overloaded method match for 'LFS_External.InSim.InSimInterface.Send_BTN_CreateButton(string, LFS_External.InSim.Flags.ButtonStyles, byte, byte, byte, byte, byte, byte, byte, bool)' has some invalid arguments
Argument 7: cannot convert from 'int' to 'byte'
[Command("canceljob", "canceljob")]
public void canceljob(string Msg, string[] StrMsg, Packets.IS_MSO MSO)
{
clsConnection Conn = Connections[GetConnIdx(MSO.UCID)];
if (StrMsg.Length > 0)
{
if (Conn.JobToHouse2 == 1)
{
(Conn.JobToHouse2 == 0);
InSim.Send_MTC_MessageToConnection("^6--^7 Job Canceled!", MSO.UCID, 0);
}
}
}