Raised This Month: $32 Target: $400
 8% 

[CSGO] Disable scoreboard / set kills, assists & deaths to 0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joses89480
Junior Member
Join Date: Feb 2023
Old 02-16-2023 , 13:25   [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #1

Hello, I'm trying to write a CSGO plugin that hides kills, assists, deaths, score and if possible the also the advanced stats.

What I tried so far:

1. Hooking +scoreboard with AddCommandListener() and returning Plugin_Handled.

2. Using SetCommandFlags() to mark +scoreboard as cheat.

3. Using SetEntProp() to change the values of m_iKills, m_iAssists, m_iDeaths & m_iScore on player_death.

I'm not really experienced with Sourcepawn so I have no idea what I'm doing wrong.
Also I can't find much info since the AM Search unfortunately doesn't do anything when I click search.

I would be really grateful, if somebody could link such a plugin or show me some code so I know what I did wrong.

Last edited by joses89480; 02-17-2023 at 05:58.
joses89480 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-17-2023 , 05:31   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #2

I maybe have something, but I need to go work now. I post it later. About setting scores to 0 (not hide)

There is one function what reset players all scores and some else stats,
but it also remove all items from player.

So I tried manually look player address + offset to player scores, and set 0

There are already in SM
https://sm.alliedmods.net/new-api/cs...CS_SetMVPCount
https://sm.alliedmods.net/new-api/cs...tributionScore
__________________
Do not Private Message @me
Bacardi is offline
joses89480
Junior Member
Join Date: Feb 2023
Old 02-17-2023 , 05:48   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #3

Thank you for your response!

I read about these offsets in the forum but I don't really understand how to find the correct values.
I used sm_dump_netprops to get the property names.

If you tell me the function name I will try. I want to use it on a 1v1 server so if I use it on player_death losing the items wouldn't be a problem.

Would be so nice if you could look into it when you have time.
joses89480 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-17-2023 , 06:00   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #4

There is game cvars, to set amount score in different actions.

You just need look those with find command
Or
https://github.com/ambaca/Bacardi-Du...2022-04-26.txt
Try look here
__________________
Do not Private Message @me
Bacardi is offline
joses89480
Junior Member
Join Date: Feb 2023
Old 02-17-2023 , 06:42   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #5

Thanks, but looks like you can only set the score (points) you get.
However I need to hide all scoreboard values including kills, assists, deaths, points and if possible the advanced stat page too.
joses89480 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-17-2023 , 17:11   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #6

Quote:
Originally Posted by joses89480 View Post
Thanks, but looks like you can only set the score (points) you get.
However I need to hide all scoreboard values including kills, assists, deaths, points and if possible the advanced stat page too.
I try look those too. It takes some time.
__________________
Do not Private Message @me
Bacardi is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 02-17-2023 , 17:20   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #7

It's not possible to hide the scoreboard afaik. The client is looking at the keys being pressed and displays the scoreboard on its own, so it's not something you could interfere with from SourceMod or anything else on the server side. You could block the server from forcing the scoreboard to display on the clients in certain situations (e.g., prevent the server from popping up the scoreboard at the end of the game).
__________________
databomb is offline
joses89480
Junior Member
Join Date: Feb 2023
Old 02-17-2023 , 18:20   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #8

Quote:
Originally Posted by Bacardi View Post
I try look those too. It takes some time.
Thanks mate!
joses89480 is offline
joses89480
Junior Member
Join Date: Feb 2023
Old 02-17-2023 , 18:21   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #9

Quote:
Originally Posted by databomb View Post
It's not possible to hide the scoreboard afaik. The client is looking at the keys being pressed and displays the scoreboard on its own, so it's not something you could interfere with from SourceMod or anything else on the server side. You could block the server from forcing the scoreboard to display on the clients in certain situations (e.g., prevent the server from popping up the scoreboard at the end of the game).
Okay thank you, so i'll have to overwrite the values but that's fine for my purpose.
joses89480 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-18-2023 , 04:45   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #10

I post simple version now.
- It reset kills, assists, deaths, mvps, scores to 0
- Reset happen on player_spawn, player_death, round_end, hostage_follows, bomb_planted events.

This works on both OS, Windows and Linux. Until CSGO update breaks again.


About other player "stats", it takes some time to look those address offset.
Some stats are saved on each round (in array) to get average result, I just need look those... pointers.

Lets see those later.
Attached Files
File Type: sp Get Plugin or Get Source (ResetPlayersScorestest.sp - 124 views - 3.8 KB)
File Type: txt csgoresetscores.games.txt (695 Bytes, 38 views)
__________________
Do not Private Message @me
Bacardi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode