Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "!sem":
- case "!SEM":
- if (Connections[GetConnIdx(MSO.UCID)].PosSpeed < 1 && Connections[GetConnIdx(MSO.UCID)].DragStage == 0)
- {
- bool Encontrado = false;
- foreach (clsConnection C in Connections)
- {
- if (C.Username != Connections[GetConnIdx(MSO.UCID)].Username)
- {
- 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);
- if (Dist <= DistanciaMax)
- {
- Encontrado = true;
- C.DragStage = 1;
- Connections[GetConnIdx(MSO.UCID)].DragStage = 1;
- {
- InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_LIGHT, 6, 65, 15, 75, 200, C.UniqueID, 2, false); //BASE CLARA1 - NOMBRE DE PILOTOS CORRIENDO
- InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_LIGHT, 6, 65, 15, 75, 201, C.UniqueID, 2, false); //BASE CLARA2 - NOMBRE DE PILOTOS CORRIENDO
- InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_LIGHT, 6, 65, 15, 75, 202, C.UniqueID, 2, false); //BASE CLARA3 - NOMBRE DE PILOTOS CORRIENDO
- InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_LIGHT, 6, 65, 15, 75, 203, C.UniqueID, 2, false); //BASE CLARA4 - NOMBRE DE PILOTOS CORRIENDO
- InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_DARK, 4, 63, 16, 76, 204, C.UniqueID, 2, false); //BASE OSCURA1 - NOMBRE DE PILOTOS CORRIENDO
- InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_DARK, 4, 63, 16, 76, 205, C.UniqueID, 2, false); //BASE OSCURA2 - NOMBRE DE PILOTOS CORRIENDO
- InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_DARK, 4, 63, 16, 76, 206, C.UniqueID, 2, false); //BASE OSCURA3 - NOMBRE DE PILOTOS CORRIENDO
- 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
- }
- }
- }
- }
- if (Encontrado == false)
- {
- InSim.Send_MTC_MessageToConnection("^6» ^7[^1ERROR^7] - No hay ningún usuario cerca.", MSO.UCID, 0);
- }
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement