07-12-2012, 04:21
The sound, the position and the color? If nobody knows, can some please post a simple code to have a lesser first blood message in the center hud? Im guessing these would be used somewhere
iPrintLnBold
PlaySoundAtOrigin
OnPlayerDamaged
But honestly I've never been able to figure out how to code plugins. And I dont even know what else has to be added. Would someone mind showing me what has to be in a plugin and where things are added? I have the plugin maker. I really want to learn the basics so I dont have to ask dumb questions. I've tried reading through the tutorial on itshax but it's confusing. If I could just look at the code for just this Im might be able to figure it out and start making my first plugin. Thank you for reading. And thank you itsmods for making games fun again. Where would we be without all you geniuses. Peace out.
I understand this is default. But as I said I dont even know where to begin adding.
iPrintLnBold
PlaySoundAtOrigin
OnPlayerDamaged
But honestly I've never been able to figure out how to code plugins. And I dont even know what else has to be added. Would someone mind showing me what has to be in a plugin and where things are added? I have the plugin maker. I really want to learn the basics so I dont have to ask dumb questions. I've tried reading through the tutorial on itshax but it's confusing. If I could just look at the code for just this Im might be able to figure it out and start making my first plugin. Thank you for reading. And thank you itsmods for making games fun again. Where would we be without all you geniuses. Peace out.
I understand this is default. But as I said I dont even know where to begin adding.
Spoiler (Click to View)
using System;
// Please, do not modify
using Addon;
namespace plugin_test
{
//"<class name> : CPlugin" is needed to inherit the functions
public class plugin_test : CPlugin
{
//Example overrides for functions
public override void OnServerFrame()
{
}
public override void OnServerLoad()
{
}
public override ChatType OnSay(string Message, ServerClient Client)
{
return ChatType.ChatContinue;
}
public override string OnCheckBan(string xuid)
{
return null;
}
public override void OnMapChange()
{
}
}
}
// Please, do not modify
using Addon;
namespace plugin_test
{
//"<class name> : CPlugin" is needed to inherit the functions
public class plugin_test : CPlugin
{
//Example overrides for functions
public override void OnServerFrame()
{
}
public override void OnServerLoad()
{
}
public override ChatType OnSay(string Message, ServerClient Client)
{
return ChatType.ChatContinue;
}
public override string OnCheckBan(string xuid)
{
return null;
}
public override void OnMapChange()
{
}
}
}