[Help] LSPD Menu
#1

My problem is that I can move around when I have that menu open I think it may be because its an addtional menu but I don't know so can someone help me?

pawn Код:
}
            case 4:
            {
                TogglePlayerControllable(playerid, false);
                HideMenuForPlayer(LSPD, playerid);
                ShowMenuForPlayer(LSPD2, playerid);
                return 1;
            }
Reply
#2

And I scripted this menu from scratch..
Reply
#3

Put

pawn Код:
TogglePlayerControllable(playerid, 0);
Wherever you have a ShowMenuForPlayer.

And then put:

pawn Код:
public OnPlayerExitedMenu(playerid)
{
  TogglePlayerControllable(playerid, 1);
}
Somewhere in your code.
Reply
#4

No it didn't work. Any other suggestions?
Reply
#5

Post your code.
Reply
#6

pawn Код:
}
            case 4:
            {
                TogglePlayerControllable(playerid, 0);
                ShowMenuForPlayer(LSPD2, playerid);
                return 1;
            }
pawn Код:
}

public OnPlayerExitedMenu(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}
Reply
#7

Your entire code.
or at least your switch that has the "case 4:" in it.

The info you've told me leads to that something in your script is unfreezing you, or a different part of your code is running than what you expect.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)