Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

CS:GO events

Hey. Is there any way to handle cs:go events with C#? By events I mean player kills another player, player dies, round starts, round ends. This kind of stuff. I want to make a statistics program to myself but I don't know if this is even possible.

Any toughts?

And, if there is a way, can it be VAC Banned?
Game State Integration.

Valve Link: https://developer.valvesoftware.com/wiki...ntegration
C# Wrapper: https://github.com/rakijah/CSGSI/
Mode: EZ
I know this isn't waht you ment, but take this as an alternative:
You can search for kills pointer, add a loop and raise your own c# event when the number of kills changes
Code
int kills;
kills = Readpointer(killsPointer);

While(true)
{
int k = (int)Readpointer(killsPointer);
if(k != kills){
// Raise event
kills = k;
if(KillsChanged != null) KillsChanged(k);
}
}
This is how I did it for a game. (Not CS:GO though)
Note that infinite loops use lots of CPU
(Jan 11, 2016 09:53 AM)sdk Wrote:  Game State Integration.

Valve Link: https://developer.valvesoftware.com/wiki...ntegration
C# Wrapper: https://github.com/rakijah/CSGSI/
Mode: EZ

Hmm, that works in every server? The server should not have some config in there for that to work?


(Jan 11, 2016 10:11 AM)mapleanton Wrote:  I know this isn't waht you ment, but take this as an alternative:
You can search for kills pointer, add a loop and raise your own c# event when the number of kills changes
Code
int kills;
kills = Readpointer(killsPointer);

While(true)
{
int k = (int)Readpointer(killsPointer);
if(k != kills){
// Raise event
kills = k;
if(KillsChanged != null) KillsChanged(k);
}
}
This is how I did it for a game. (Not CS:GO though)
Note that infinite loops use lots of CPU

That is not what I meant. Like you said it will consume a lot or resources, and I don't want that :/

Thanks for the answers.
this?
http://public.ebot.wedeho.be/
i think it shows how many kills etc after the game and esl uses this.
Pm me if you need help with any stuff
[Image: 81147a706d4b88ea03f6160717f94f97.png]
(Jan 11, 2016 11:07 AM)8miles Wrote:  this?
http://public.ebot.wedeho.be/
i think it shows how many kills etc after the game and esl uses this.
Pm me if you need help with any stuff

Something like that but that works with the CLIENT and not with the SERVER. I want to somehow connect the C# program to the game so it can count kills, deaths, headshots, etc.
(Jan 11, 2016 11:11 AM)HVNCSP Wrote:  Something like that but that works with the CLIENT and not with the SERVER. I want to somehow connect the C# program to the game so it can count kills, deaths, headshots, etc.

Do what I said. You can join any server, the config is client sided, you can paste it to the dir programmatically in the beginning. Then Just as long as the players in game it will start a server and you can connect, I havent done too much testing around but I just recently got one to work. You can actually get quite a bit of info off that, Kills/Assits/Deaths/MVPs/Ammo/Guns(loadout) etc.
(Jan 11, 2016 11:15 AM)sdk Wrote:  Do what I said. You can join any server, the config is client sided, you can paste it to the dir programmatically in the beginning. Then Just as long as the players in game it will start a server and you can connect, I havent done too much testing around but I just recently got one to work. You can actually get quite a bit of info off that, Kills/Assits/Deaths/MVPs/Ammo/Guns(loadout) etc.

Yeah, now I got it! 🤗

Just ran the test program in the github readme and it worked. This shit is awesome! :D

Thanks 👍


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by darkdoctorJun 7, 2018 12:10 PM 1 163 Jun 7, 2018 12:10 PM
Last Post: Washi
[C#] by gigajewFeb 3, 2018 07:31 PM 0 296 Feb 3, 2018 07:31 PM
Last Post: gigajew
[.NET] by SIM-1517404Mar 7, 2017 01:21 PM 10 356 Mar 7, 2017 01:21 PM
Last Post: SIM-1517404