> Q: I looked many forums/newsgroups about the Hl programming client/server > side and i looked the metamod too but its not my real question, My question > is: I would like to create a EXTERNAL (No depending the HAlf-life) program > that will allow me to print a message to the Hl/HL mod console, some ppl are > talking about the "DLL injection method" and Som1 ppl talk about the > client.dll call fonctions i really don't know what they meen and i would > like to find a good example/tutorial/source code that will let me to > simply : When i execute the 'Myprogram.exe' it prints on the HL/HL mod > console "Hello" :), I got the sdk2.3 and vc++ 6.0 and Dev c++ 4.x and gcc > under linux, and no i don't want to execute commands with rcon :)
There is no built in function to support an external application printing to a client's display. This can be done with a metamod plugin running on the server, where the plugin prints text messages to the client's HUD using standard Half-Life network messages. The DLL injection method you are talking about is the method that many Half-Life cheat creators used to use to load applications on the client in order to get them to run in the Half-Life client's process space (and intercept/modify client data). The cheat method won't work anymore on servers that use Valve's Anti-Cheat (VAC) technology. This includes any server running Counter-Strike, TFC, and Day of Defeat. Servers that are running non-Valve MODs will not have VAC installed and are still subject to client side hooks. Most honest players won't want to run any kind of client side hook since it has the potential to get them banned from a server if the server is running an application that can detect client side files (ala HLGuard, Cheating-Death, etc.). It sounds as though you are trying to create an instant messaging type application. It would be better to use a metamod plugin to send a text message to a client and allow the client to respond back to whoever originated the message. You could have an external TCP/IP socket connection from the metamod plugin to your messaging client (running on Windows/Linux/Macs, etc.) and allow people to send messages to clients who are connected to a Half-Life server. Of course, the server admin would have to install your metamod plugin on the server in order for this to work. You would also need to have some method of tracking which server a specific player is currently connected to. This again could be done through your metamod plugin using the WONid to be used as a key in a database on some globally accessible internet web site. Your messaging client store the player's name and WONid in a local file, the person could enter the name of the person they wish to contact and you messaging application would look up that person's WONid in the global database to determine if that player is currently connected to any server running your metamod plugin. If so, it would know the IP address of the server and could make a TCP/IP connection to your metamod plugin to allow the person to send a message to the Half-Life client. Jeffrey "botman" Broome _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

