Help with menu
#1

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..
Reply
#2

hmm i think the command is

public OnPlayerLeaveMenu - or something like this

TogglePlayer 1

i hope u know what i mean 0=frezze 1= unfrezze i think so
Reply
#3

Geekzor I recommend you to check your answers sometimes.
The callback is OnPlayerExitedMenu(playerid) and you can unfreeze player with SetPlayerControllable(playerid, toggle).
Reply
#4

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 but nvm still ty for ''warning''
Reply
#5

Post your code.
What do you want exactly? This will unfreeze your player when they exit the menu ..
pawn Код:
// OnPlayerExitMenu
TogglePlayerControllable(playerid, 1);
Reply
#6

Then don't post geekzor
Reply
#7

I want that when i press Enter it will exit the Menu and unfreeze me...

I dont have any public named OnPlayerExitMenu
Reply
#8


Comon i need it..
Reply
#9

don't bump -_-
and
put in your sript sumwhere
pawn Код:
public OnPlayerExitedMenu(playerid)
{
    TogglePlayerControllable(playerid,1);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)