Example #1
0
        public override EventEat OnSay3(Entity player, ChatType type, string name, ref string message)
        {
            if (message.EndsWith("!pos"))
            {
                Utilities.RawSayTo(player, player.Origin.X + ", " + player.Origin.Y + ", " + player.Origin.Z);
                Log.Write(LogLevel.All, player.Name.ToString() + ": " + player.Origin.X + ", " + player.Origin.Y + ", " + player.Origin.Z);
                return(EventEat.EatGame);
            }

            if (message.Equals("!getmodell"))
            {
                Entity test = MapObjects.CreateObject(player.Origin, "mp_body_opforce_ghillie_desert_sniper");
                return(EventEat.EatGame);
            }
            return(EventEat.EatNone);
        }