Controlling the menu.
#3

It works nicely , but theres a problem, i have already TogglePlayerControllable when the menu comes up,
but when i go into a submenu press F key, it thinks ive already exited the menu and alows me to move again..
ive tried to do seomthing like this to prevent from it but still it alows me to move
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new Menu:current;
    current = GetPlayerMenu(playerid);
    if(current == pistols)
    {
        if (PRESSED(KEY_SECONDARY_ATTACK))
        {
            ShowMenuForPlayer(wepmenu, playerid);
            TogglePlayerControllable(playerid,0);
        }
    }
    return 1;
}
Any suggestions please?
Reply


Messages In This Thread
Controlling the menu. - by OldDirtyBastard - 06.11.2010, 19:34
Re: Controlling the menu. - by Hiddos - 06.11.2010, 19:41
Re: Controlling the menu. - by OldDirtyBastard - 06.11.2010, 20:04
Re: Controlling the menu. - by MadeMan - 06.11.2010, 20:15

Forum Jump:


Users browsing this thread: 1 Guest(s)