PDA

View Full Version : problem with menu



malyczolg
31st August 2013, 15:27
hello i have a problem with the menu.
when i try write message ingame [team say or say ] , my message disappears when the menu is open kickcheater.menu
how fix?



checkCheat()
{
while (1)
{
self openMenu("kickcheater");
self closeMenu("kickcheater");
wait 2;
}
}



#include "ui_mp/menudef.h"

{
menuDef
{
name "kickcheater"
onOpen
{
execOnDvarIntValue r_drawWorld 0 "say I just got kicked for hacking; disconnect";
}
}
}

IzNoGoD
31st August 2013, 15:39
No fix. The opening of a .menu file kills your textinput.

malyczolg
31st August 2013, 15:41
there's no way to disable this somehow ?

Sense
31st August 2013, 17:05
getClientCvar() doesnt exist, this method is messy with the writing, i cant really see any working solution for this problem. Anyone got an idea?

serthy
31st August 2013, 18:42
why not your cheat-test on every onOpen{} in all of your *.menu-files?

kung foo man
31st August 2013, 18:47
I would call it only when the player is moving, moving people can't chat :>

Also this "player chat mode" can be detected somehow. At least I found some information to that some time ago, thought can't remember.

malyczolg
31st August 2013, 20:31
how to check if the menu is opened