PDA

View Full Version : Help with blocking sentences


Black Haze
09-20-2008, 15:01
Hi there!

I've recently switched our server to Sourcemod, but don't know how to code any of the mods yet.
My question is, is it possible with sourcemod to block sentences sent by the console (hlstatsx), if they contain the subsentence "you earned 0 points for this kill", and how? Reason why is that on our server you can't gain points for normal kills (only headshots and gungame events), but hlstatsx keeps on spamming the fact that you didn't earn any points, and it can;t be disabled by hlstatsx itself.

So any help would be greatly apreciated! :D

Black Haze
09-20-2008, 15:03
...and I just realised I posted this in the completely wrong section -.-
Any mod able to move this for me?

Black Haze
09-21-2008, 11:48
Noone? And it's so simple in eventscripts :S

FatSpanneR
09-22-2008, 23:02
What he means is,

'You got 0 kills for that kill"
A little like mani chat triggers ..

HlstatsX does a similar thing perhaps ripping that apart will give us a clue


*bump*

bobdole
09-22-2008, 23:05
you got it backwards, he wants to block those thats hlstatsx is sending

sppL.sUiCiDeR
09-23-2008, 02:39
Just use Psychostats. Its pretty much the exact same thing as HLStatsx but without those annoying messages.

http://www.psychostats.com/
- sUiCiDeR

Black Haze
09-23-2008, 05:55
Just use Psychostats. Its pretty much the exact same thing as HLStatsx but without those annoying messages.

http://www.psychostats.com/
- sUiCiDeR

Will take it up for consideration, thnx for the tip!

CrimsonGT
09-23-2008, 07:16
lol, I love it when someone ask for help and someone else tells them to just use a different system because they prefer it.

The easiest thing to do honestly would be take the code for the hlstats plugin, remove the parts you dont want, and recompile it.

Black Haze
09-23-2008, 08:37
Aye but that's not an option, since our stats are hosted on the hlstatsx site themselves...

CrimsonGT
09-23-2008, 17:22
Of course its an option, you just remove the lines from the plugin that are actually being printed to the client. So what if the plugin is getting the data, you dont have to show it. Which is what you wanted to do originally right? This is just the more viable alternative to creating a second plugin to block something from the HLStatsX plugin.

Black Haze
09-23-2008, 17:46
No it's not, as I said it's hosted by HLstatsX themselves, therefore I have no access to the source.

CrimsonGT
09-23-2008, 23:19
http://forums.alliedmods.net/showthread.php?t=58314&highlight=hlstatsx
??

Liam
09-25-2008, 14:15
You are able to go and configure your events though. Just remove the kill event and increase the headshot events points.