how can i getting player ping

Posts 16–18 of 18 · Page 2 of 2
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 ??
self setClientDvar("cg_scoreboardPingText", 1);

It will show up on the scoreboard though, idk if thats what you want
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.
Posts 16–18 of 18 · Page 2 of 2
This thread is closed for replies.
Talk with us