Command execution help

Started by Supernova384 on Sun, 04/16/2017 - 05:00

Topic category: Advanced modding

Last seen on 18:22, 16. Apr 2017
Joined Jan 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Command execution help
Sun, 04/16/2017 - 05:00

I'm making a Mod that adds a command that executes another command on a random player every few seconds, I have the added command in and the command it's supposed to execute, my problem is adding a variable to select a random player online and apply the command to them

basically, my command i added: /friendall , the command is executes: /kill "player" , Where I want "player" to be a random person online.

my problem is I'm trying to add the variable for the command to select the random player from the server, and adding a delay so it constantly runs the command every few seconds.

anyone know what im missing?

Last seen on 18:22, 16. Apr 2017
Joined Jan 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Another thing I'm having
Sun, 04/16/2017 - 06:23

Another thing I'm having trouble with is adding a Variable for when a Player's experience level hits a certain point (1-100 levels), because I'm adding an Overlay that requires the players level to reach 100 in order to display