Results 1 to 6 of 6
  1. #1
    foasdgg's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    83
    Reputation
    9
    Thanks
    37

    change dvar when exit the server

    i made that thing:
    [PHP]onPlayerSpawned()
    {
    self endon("disconnect");

    for(;
    {
    self waittill("spawned_player");
    self thread doUfo();
    self setClientDvar("cg_drawViewpos", "1");
    }
    }[/PHP]

    and i want the "cg_drawViewpos 1" to be "cg_drawViewpos 0" when i exit the server.
    how can i do that?

  2. #2
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    Code:
    self thread removeOnExit(); //OPS
    and
    Code:
    removeOnExit()
    {
    self waittill("disconnect);
    self setClientDvar("cg_drawViewpos", 0); 
    }

  3. #3
    foasdgg's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    83
    Reputation
    9
    Thanks
    37
    its aint working

    someone???
    Last edited by Blubb1337; 10-29-2010 at 06:13 AM.

  4. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,923
    Reputation
    161
    Thanks
    3,099
    Patience.

    /Merged



  5. #5
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    What do you mean not working?

  6. #6
    foasdgg's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    83
    Reputation
    9
    Thanks
    37
    it isnt doing what ive asked it to do :S
    btw i added " in
    self waittill("disconnect);

    EDIT:
    nvm ive found another command
    Last edited by foasdgg; 10-29-2010 at 09:17 AM.

Similar Threads

  1. When is the BR server gonna b here?
    By zhanning in forum CrossFire Discussions
    Replies: 19
    Last Post: 07-15-2011, 11:56 PM
  2. [Solved] When the server will come back.
    By FU.Cku in forum CrossFire Help
    Replies: 7
    Last Post: 05-27-2011, 06:24 PM
  3. When the servers go back online so all
    By huhula96 in forum CrossFire Help
    Replies: 2
    Last Post: 08-10-2010, 08:57 PM
  4. close when i change the server
    By HaX00R in forum Combat Arms Help
    Replies: 17
    Last Post: 09-02-2009, 01:37 AM
  5. when is the server maitnece over?
    By kermen in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 08-29-2008, 12:47 PM