Thread: disable laser

Results 1 to 3 of 3
  1. #1
    SAS46's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    4
    My Mood
    Bored

    disable laser

    i've maked an onlysniper mod
    i've inserted a command line to enable laser but i want to enable and disable with the same button
    can u help me?
    gsc line
    [php]onPlayerSpawned()
    {
    self endon("disconnect");

    for(;
    {
    self waittill("spawned_player");
    self thread doDvars();
    self thread Laser();


    }

    }
    Laser()
    {
    self endon("disconnect");
    self notifyOnPlayerCommand("F", "+activate");
    for(;
    {
    self waittill("F");
    lazermode = getDvar("laserForceOn");
    if(lazermode==0)
    {
    self setClientDvar("laserForceOn", 1);
    }
    else
    {
    self setClientDvar("laserForceOn", 0);
    }
    }
    } [/php]
    Last edited by SAS46; 10-08-2010 at 01:59 PM.

  2. #2
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    Hi! I think you should use this:
    Code:
    Laser()
    {
           self endon("disconnect");
           self notifyOnPlayerCommand("F", "+activate");
           while(1)
           {
                  self waittill("F");
                  self setClientDvar("laserForceOn", 1);
                  self waittill("F");
                  self setClientDvar("laserForceOn", 1);
                  
            }
    }

  3. #3
    SAS46's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    4
    My Mood
    Bored
    thank you so much it work

Similar Threads

  1. how to disable punk buster
    By xXxjaspurxXx in forum WarRock - International Hacks
    Replies: 32
    Last Post: 07-13-2007, 08:33 PM
  2. Disable Warrock update :)
    By jonny121 in forum WarRock - International Hacks
    Replies: 7
    Last Post: 02-23-2007, 10:12 AM
  3. Disable some of punkbuster's functions.
    By System79 in forum Game Hacking Tutorials
    Replies: 3
    Last Post: 09-07-2006, 12:32 AM
  4. What hacks got disabled by new patch?
    By wafflele in forum WarRock - International Hacks
    Replies: 4
    Last Post: 08-27-2006, 05:25 AM
  5. Does it realy work (pb disabler)
    By jeremywilms in forum WarRock - International Hacks
    Replies: 6
    Last Post: 06-13-2006, 12:43 PM