Well ive read about 5 chapters in my C++ book. Im comfortable working with the dev environment and i pretty much know the basic C++ stuff. However like I did when I first started php, i'm going to start with a project that is way over my head.
I want to make a simple server mod for this game I play. Basically what i want to do is (since the game is pretty old and there are a lot of cheaters playing) create a "Punt/Ban mod." Currently only the administrator of the server can punt/ban a player (can only be done server side.) I would like to create a mod that would allow players to punt a player after a certian ammount of votes. For example, I would type "punt kick 16" and then the server would reply "Vote 1 of 5 to kick player 16" then if 4 other people did that, it would have the server execute the punt command.
I guess the first step is to find out what the players are saying in the game, and therefor when the "punt kick" command is typed, the server can recogonize it and do what its suppose to do. So, when ever a player says something it is sent to the server and stored in these hex addresses (i think, at least thats what TSearch found):
0007EEC1C
0007EEC2C
0007EEC3C
The second part would be to execute the actual punt command. To do that, when it is "Vote 5 of 5" the server would punt the player. Ive seen some VB tutorials where u can just tell the server to press ~ and type "punt 16" like this:
Code:
Private Sub WriteText(Text As String)
SendAMessage (Asc("~")) 'Press's ~ *brings up the chat propmt*.
Sleep (50) 'Gives the chat propmt some time to initialize.
Call WriteAscii(something goes here, Text) 'Writes text to the prompt.
Sleep (50) 'Gives sometime to the writing to finish.
SendAMessage (vbKeyReturn) 'Press's ENTER *submits message*.
End Sub
but im not sure how to do that in C++. So if anyone can tell me some functions or things i should look into, i would appreciate it.
Thank You.