Results 1 to 7 of 7

Thread: problem with menu

  1. #1
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts

    problem with menu

    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?


    PHP Code:
    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";
    }
    }
    }
    Last edited by malyczolg; 31st August 2013 at 15:29.

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    No fix. The opening of a .menu file kills your textinput.

  3. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (31st August 2013)

  4. #3
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts
    there's no way to disable this somehow ?
    Last edited by malyczolg; 31st August 2013 at 15:43.

  5. #4
    Private
    Join Date
    Nov 2012
    Location
    Denmark, where else
    Posts
    27
    Thanks
    5
    Thanked 13 Times in 6 Posts
    getClientCvar() doesnt exist, this method is messy with the writing, i cant really see any working solution for this problem. Anyone got an idea?
    Dont drink and drive, smoke and fucking fly

  6. #5
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    why not your cheat-test on every onOpen{} in all of your *.menu-files?

  7. The Following User Says Thank You to serthy For This Useful Post:

    kung foo man (31st August 2013)

  8. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    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.
    timescale 0.01

  9. #7
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts
    how to check if the menu is opened

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •