06.11.2010, 20:04
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
Any suggestions please?
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;
}