Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: BeastyIan on April 19, 2015, 12:33:39 PM

Title: Help with ulx
Post by: BeastyIan on April 19, 2015, 12:33:39 PM
I need a way to run the command "ulx addxp server 100" every 2 minutes. Anybody know a way I could do it? (Server is the part where you put the player there but I want the whole server to receive the xp every 2 minutes.)
Title: Re: Help with ulx
Post by: Bytewave on April 19, 2015, 02:56:45 PM
http://wiki.garrysmod.com/page/timer/Simple (http://wiki.garrysmod.com/page/timer/Simple)
http://wiki.garrysmod.com/page/Global/RunConsoleCommand (http://wiki.garrysmod.com/page/Global/RunConsoleCommand)

As for targeting everyone, there's always the * target, which targets every available target that its caller has permission to target.
Title: Re: Help with ulx
Post by: MrPresident on April 19, 2015, 03:02:08 PM
If you're trying to write a script to give all players xp every 2 minutes, you should use whatever function the addxp command uses to give the xp rather than forcing the server to run a console command.

Sure, both ways might work, but the former is better practice.