ULX

Author Topic: Help with ulx  (Read 1398 times)

0 Members and 1 Guest are viewing this topic.

Offline BeastyIan

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Help with ulx
« 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.)

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Help with ulx
« Reply #1 on: April 19, 2015, 02:56:45 PM »
http://wiki.garrysmod.com/page/timer/Simple
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.
bw81@ulysses-forums ~ % whoami
Homepage

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Help with ulx
« Reply #2 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.