Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true)
- {
- GameFiber.Yield();
- for (int index = 0; index < 8; index++)
- {
- if (Vector3.Distance2D(hotelLocation[index], Game.LocalPlayer.Character.AbovePosition) < 20 ) // Only activate if the player is close enough.
- {
- Game.DisplayHelp("Menu Should Be activated");
- if (activeMenu == !true)
- {
- mainMenu.Visible = true;
- activeMenu = true;
- GameFiber.StartNew(delegate
- {
- while (true)
- {
- GameFiber.Yield();
- _menuPool.ProcessMenus();
- }
- });
- }
- }
- else if (Vector3.Distance2D(hotelLocation[index], Game.LocalPlayer.Character.AbovePosition) > 20)
- {
- // I can't seem to stop this from firing no matter what I do.
- Game.DisplayNotification("You are away from a hotel.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment