Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: how block cod2 commands?

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

    ******* script compile error *******
    unknown function: (file 'maps/pam/sd.gsc', line 340)
    self.draw_world = GetDvarInt("r_drawworld");
    *
    ************************************

  2. #12
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Huh why is randalls reply deleted?
    "GetCvarInt"

  3. #13
    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
    Deleted the last 3 senseless posts (getcvarint is server-only). Peterlankton/me basically told him how he can check cvars.
    timescale 0.01

  4. #14
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts
    Quote Originally Posted by Ni3ls View Post
    Huh why is randalls reply deleted?
    "GetCvarInt"
    hello , thanks work but "GetCvarInt" function for server i need function check for 1 player : for me , for bot0
    Last edited by malyczolg; 22nd August 2013 at 15:44.

  5. #15
    Private
    Join Date
    Nov 2012
    Location
    Denmark, where else
    Posts
    27
    Thanks
    5
    Thanked 13 Times in 6 Posts
    Quote Originally Posted by malyczolg View Post
    a lot of people playing of cheats "r_drawworld 0" they use cheat engine.
    First of all do you have sv_cheats "0" on this server? if not then try it.

    Quote Originally Posted by malyczolg View Post
    PHP Code:
    drawworld()
    {
        for(;;)
        {
            
    self setClientCvar("r_drawworld","1");
            
    wait 0.01;
        }

    Possibly the worst you could do, as loops should be the last solution for problems.

    Quote Originally Posted by kung foo man View Post

    In connect.menu:
    Code:
    //exec "dvar_bool r_drawWorld 1"
    onOpen	{ execNow "r_drawWorld 1" }
    This might help better:

    ui_mp/scriptmenus/kickcheater.menu
    Code:
    #include "ui_mp/menudef.h"
    
    {
        menuDef
        {
            name "kickcheater"
            onOpen
            {
                execOnDvarIntValue r_drawWorld 1 "disconnect"; // shouldnt this be 0 as it is execOnDvarIntValue?
            }
        }
    }
    PHP Code:
    // only once:
    precacheMenu("kickcheater");



    while (
    1)
    {
        
    player openMenu("kickcheater");
        
    player closeMenu("kickcheater");
        
    wait 5;

    Simple solution, use it.
    Last edited by Sense; 26th August 2013 at 07:05.
    Dont drink and drive, smoke and fucking fly

Posting Permissions

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