Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Ping Text visible plugin
#1
Hi guys, I need your help to fix a code. I tried to do a plugin that let you see your ping (hiding ping bars) in the scoreboard (TAB). So Basically what I needed to do is to force 2 client dvars on player connect:

cg_scoreboardpingtext to be 1
cg_scoreboardpinggraph to be 0

I written a code based on a fov plugin (by Tylerd86 & JariZ), compiled with pluginmaker v3:

Code:
using System;
using Addon;

namespace pingtext
{
    public class pingtext : CPlugin
    {
        public override void OnServerLoad()
        {
            ServerPrint("PingText Loaded! by b00mSh4k4");
        }

        public override void OnPlayerConnect(ServerClient Client)
        {
            SetClientDvar(Client.ClientNum, string.Format("cg_scoreboardpingtext \"{0}\"", GetServerCFG("PING", "text", "1")));
            SetClientDvar(Client.ClientNum, string.Format("cg_scoreboardPingGraph \"{0}\"", GetServerCFG("PING", "bars", "0")));
        }
    }
}

Then I added this code to my sv_config.cfg...

Code:
[PING]
text=1
bars=0

That plugin doesn't load and, also, makes impossible to use the ingamercontool. I really can't figure out what's wrong with it... Help me please!!!
Reply

#2
SetClientDvar does work, however IW blocked this dvar (and many others) client-side.
[Image: azuw.jpg]
Reply

#3
oh... >.< now I see.... tnx. So... there is no alternative way to do it?
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 4,169 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,748 11-08-2013, 19:13
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 41,581 10-30-2013, 11:59
Last Post: clacki
  Getting text from a website JustDoingThisShit 2 2,856 10-21-2013, 08:00
Last Post: JustDoingThisShit
  Help Modifying plugin maverigh 5 5,672 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 5,180 10-19-2013, 06:59
Last Post: iRoNinja
  [Release] Yurio Map Plugin Yurio 101 62,332 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 18,654 09-23-2013, 13:18
Last Post: SgtLegend
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 2,712 09-13-2013, 09:31
Last Post: Hallla
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,307 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.