I was wondering whether or not I was able to create a 'hit' system on my server (hit like the SMP live server, being instructed to kill another player).
I've come up with an idea for this by making a timer that every five minutes has a 30% chance of selecting a hit. If a hit is selected two players will be selected at random, one to kill and one to be killed. I was hoping this could be done on command blocks but I'm not sure how to do it myself.
If someone could perhaps steer me in the right direction it would be greatly appreciated.
oh yeah, and it'd be pretty epic if only the person who has to kill was told directly, theirs only 8 people on the server so if specific names are needed in commands that would be possible.
I hope someone with enough intellect could help me out.
And if anyone has any suggestions feel free to let me know I'm always up for ideas.
The random chance can be done with a dropper randomizer that's really easy to set up, and can be done by using the design in the attached images with the dropper hooked up to a daylight sensor of some sort.
However, generating the random names for the hit has an issue. The easiest way to do that would be the command:
tell @r You're being contracted to kill @r
However, this does mean it could contract a player to have a hit on themselves. It would also only select players that are online, but that's probably best for something like this.