zombie events

zombie events

Postby HETAL » 17 Jun 2013, 22:33

I need the zombie start and end events and how to use them because In some softwares the use is different.
YOU HAVENT SEEN THE LAST OF ME ISMELLIKE
HETAL
 
Posts: 397
Joined: 24 May 2013, 12:10

Re: zombie events

Postby ismellike » 17 Jun 2013, 22:37

Here you go

Code: Select all
        public override void Init() //happens when you load the command
        {
            InfectionSystem.InfectionSystem.RoundStart += new EventHandler<InfectionSystem.RoundStartEventArgs>(InfectionSystem_RoundStart);
        }
        public void InfectionSystem_RoundStart(object sender, InfectionSystem.RoundStartEventArgs e)
        {
            Player.players.ForEachSync(player =>
              {
                  Player.SendMessage(player, "HI");
              });
        }


The code above would tell everyone HI when the round starts
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas

Re: zombie events

Postby HETAL » 17 Jun 2013, 22:38

Wow its that easy in mcdzienny
YOU HAVENT SEEN THE LAST OF ME ISMELLIKE
HETAL
 
Posts: 397
Joined: 24 May 2013, 12:10


Return to Help in Coding

Who is online

Users browsing this forum: No registered users and 6 guests

cron