[Help] LSPD Menu - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] LSPD Menu (
/showthread.php?tid=85711)
[Help] LSPD Menu -
Sean12 - 09.07.2009
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;
}
Re: [Help] LSPD Menu -
Sean12 - 09.07.2009
And I scripted this menu from scratch..
Re: [Help] LSPD Menu -
ledzep - 09.07.2009
Put
pawn Код:
TogglePlayerControllable(playerid, 0);
Wherever you have a ShowMenuForPlayer.
And then put:
pawn Код:
public OnPlayerExitedMenu(playerid)
{
TogglePlayerControllable(playerid, 1);
}
Somewhere in your code.
Re: [Help] LSPD Menu -
Sean12 - 09.07.2009
No it didn't work. Any other suggestions?
Re: [Help] LSPD Menu -
ledzep - 09.07.2009
Post your code.
Re: [Help] LSPD Menu -
Sean12 - 09.07.2009
pawn Код:
}
case 4:
{
TogglePlayerControllable(playerid, 0);
ShowMenuForPlayer(LSPD2, playerid);
return 1;
}
pawn Код:
}
public OnPlayerExitedMenu(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}
Re: [Help] LSPD Menu -
ledzep - 09.07.2009
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.