Help with 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 with menu (
/showthread.php?tid=86797)
Help with menu -
[Sk]Noob - 16.07.2009
Hello.
I made some menu in my server and my question is how can i exit the menu with hiting the enter key ?
when i hit the enter key it remove the menu but not the freeze..
Re: Help with menu -
Geekzor - 16.07.2009
hmm i think the command is
public OnPlayerLeaveMenu - or something like this
TogglePlayer 1
i hope u know what i mean
![Cheesy](images/smilies/biggrin.png)
0=frezze 1= unfrezze i think so
Re: Help with menu -
c0der. - 16.07.2009
Geekzor I recommend you to check your answers sometimes.
The callback is OnPlayerExitedMenu(playerid) and you can unfreeze player with SetPlayerControllable(playerid, toggle).
Re: Help with menu -
Geekzor - 16.07.2009
Quote:
Originally Posted by c0der.
Geekzor I recommend you to check your answers sometimes.
The callback is OnPlayerExitedMenu(playerid) and you can unfreeze player with SetPlayerControllable(playerid, toggle).
|
bah... if i am beginer that dont mean i will tell the 100% true code... and i am to lazy to check my posts
![Cheesy](images/smilies/biggrin.png)
but nvm still ty for ''warning''
Re: Help with menu -
Abernethy - 16.07.2009
Post your code.
What do you want exactly? This will unfreeze your player when they exit the menu ..
pawn Код:
// OnPlayerExitMenu
TogglePlayerControllable(playerid, 1);
Re: Help with menu -
LordShigi - 16.07.2009
Then don't post geekzor
Re: Help with menu -
[Sk]Noob - 16.07.2009
I want that when i press Enter it will exit the Menu and unfreeze me...
I dont have any public named OnPlayerExitMenu
Re: Help with menu -
[Sk]Noob - 16.07.2009
Comon i need it..
Re: Help with menu -
saiberfun - 16.07.2009
don't bump -_-
and
put in your sript sumwhere
pawn Код:
public OnPlayerExitedMenu(playerid)
{
TogglePlayerControllable(playerid,1);
return 1;
}