Originally Posted by
robme
I've looked but i don't get it and stuff how do i inject the codes in the dll and create menu and stuff its too complicated.
Creating a menu is not done strictly through the Assembly-CSharp file, these are hacks where people make their own DLL and load it through a hook. There's a template hook program on this subforum if you want to try your hand at that, otherwise you can edit an existing one. What I did was use .NET Reflector to export the code of encode's Cocacola.dll (he recently released source however, so take that instead). Open that up in Visual Studio, and you can edit it to your hearts content, and compile it fairly painlessly. Then use the hack just like you would normally except with your own edited DLL. To get an idea of what to add in, here's a neat little bit of code that I don't think (?) is currently released in a hack, however the code for it is out there on another thread:
Code:
//***
//SPAM PRAISE
//***
Entity localPlayer = Entity.LocalPlayer;
foreach (Entity entity in Entity.GetAll())
{
if ((localPlayer != entity) && (entity.IsPlayer)) EventManager.CallEvent(new PlayerChatEvent(entity.Controller.Id, "PRAISE THE SUN!"));
}
This is a basic stripped down way to send a message as another player. Enclose this in a button, and whenever you press it, every player on the server except you will say "PRAISE THE SUN!" With a little intuition you could change this to be a little more useful and send an individual message from an individual player of your choice.