Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    shailm_85's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Happy
    Quote Originally Posted by Arasonic View Post
    ^
    |
    Wrong, just me that might say some wrong typos.
    Heres an example

    Code:
    newConsoleDvar()
    {
            SetDvarIfUninitialized( "thing", "none");
            self endon ( "death" );
            for(;;)
            {
    		if(getdvar( "thing" ) == "the "none" value here"){
    		        //code here
    		    }
            }
    }
    Code:
    newConsoleDvar()
    {
            SetDvarIfUninitialized( "giveM9", "none");
            self endon ( "death" );
            for(;;)
            {
    		if(getdvar( "giveM9" ) == "1"){
    		self giveWeapon("beretta_mp");}
            }
    }
    
    giveM9 1
    Add it to onPlayerSpawned, and then type in console
    Untested, but should most likely work
    If it doesn't work, but doesn't give an error itself, try a devmap

    Thanks a lot Arasonic
    it working u r a genius

    hey do u know how can get players ping Arasonic ??

  2. #17
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    self setClientDvar("cg_scoreboardPingText", 1);

    It will show up on the scoreboard though, idk if thats what you want

  3. #18
    shailm_85's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Happy
    Quote Originally Posted by Arasonic View Post
    self setClientDvar("cg_scoreboardPingText", 1);

    It will show up on the scoreboard though, idk if thats what you want

    i mean get players ping for a auto kick high pinger function
    & i do use set sv_maxPing but still high pinger connect or may be it increases after they connect cuz of there bad internet connection.
    problem is that everybody starts lagging badly.

Page 2 of 2 FirstFirst 12