Advertisement
Guest User

LFS HELP

a guest
Mar 19th, 2018
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.10 KB | None | 0 0
  1.                     case "!sem":
  2.                     case "!SEM":
  3.                         if (Connections[GetConnIdx(MSO.UCID)].PosSpeed < 1 && Connections[GetConnIdx(MSO.UCID)].DragStage == 0)
  4.                         {
  5.                             bool Encontrado = false;
  6.                             foreach (clsConnection C in Connections)
  7.                             {
  8.                                 if (C.Username != Connections[GetConnIdx(MSO.UCID)].Username)
  9.                                 {
  10.                                     int Dist = ((int)Math.Sqrt(Math.Pow(Connections[GetConnIdx(MSO.UCID)].PosX - C.PosX, 2) + Math.Pow(Connections[GetConnIdx(MSO.UCID)].PosY - C.PosY, 2)) * 3);
  11.                                     if (Dist <= DistanciaMax)
  12.                                     {
  13.                                         Encontrado = true;
  14.                                         C.DragStage = 1;
  15.                                         Connections[GetConnIdx(MSO.UCID)].DragStage = 1;
  16.                                         {
  17.                                             InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_LIGHT, 6, 65, 15, 75, 200, C.UniqueID, 2, false); //BASE CLARA1 - NOMBRE DE PILOTOS CORRIENDO
  18.                                             InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_LIGHT, 6, 65, 15, 75, 201, C.UniqueID, 2, false); //BASE CLARA2 - NOMBRE DE PILOTOS CORRIENDO
  19.                                             InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_LIGHT, 6, 65, 15, 75, 202, C.UniqueID, 2, false); //BASE CLARA3 - NOMBRE DE PILOTOS CORRIENDO
  20.                                             InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_LIGHT, 6, 65, 15, 75, 203, C.UniqueID, 2, false); //BASE CLARA4 - NOMBRE DE PILOTOS CORRIENDO
  21.                                             InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_DARK, 4, 63, 16, 76, 204, C.UniqueID, 2, false); //BASE OSCURA1 - NOMBRE DE PILOTOS CORRIENDO
  22.                                             InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_DARK, 4, 63, 16, 76, 205, C.UniqueID, 2, false); //BASE OSCURA2 - NOMBRE DE PILOTOS CORRIENDO
  23.                                             InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_DARK, 4, 63, 16, 76, 206, C.UniqueID, 2, false); //BASE OSCURA3 - NOMBRE DE PILOTOS CORRIENDO
  24.                                             InSim.Send_BTN_CreateButton("^6» ^6" + Connections[GetConnIdx(MSO.UCID)].PlayerName + "^L ^7está corriendo con ^6" + C.PlayerName, Flags.ButtonStyles.ISB_DARK, 4, 63, 16, 76, 207, C.UniqueID, 2, false); //BASE OSCURA4 - NOMBRE DE PILOTOS CORRIENDO
  25.                                         }
  26.                                     }
  27.                                 }
  28.                             }
  29.                             if (Encontrado == false)
  30.                             {
  31.                                 InSim.Send_MTC_MessageToConnection("^6» ^7[^1ERROR^7] - No hay ningún usuario cerca.", MSO.UCID, 0);
  32.                             }
  33.                         }
  34.                         break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement