Author Topic: Ulx command running two ulx commands  (Read 2272 times)

0 Members and 1 Guest are viewing this topic.

Offline Desasterx3

  • Newbie
  • *
  • Posts: 18
  • Karma: -1
Ulx command running two ulx commands
« on: March 02, 2016, 11:41:11 PM »
Hey there,
 I would like to create an ULX command that runs 2 other ulx commands on a specified player.
 Okay so i got these two commands i want to use:
 
Code: [Select]
ulx tempadduser

 
 !givepoints
These are custom commands that can be found here:
Temporary Users
Pointshop Commands


 I would need 3 different versions of this with different times and point amounts. You could just create 3 templates and i can edit the times. The commands for these should be:
Code: [Select]
!paket1 target
 !paket2 target
 !paket3 target
Thanks for anyone taking their time.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Ulx command running two ulx commands
« Reply #1 on: March 03, 2016, 12:21:54 PM »
I swear I saw this exact post, also made by you, yesterday. No need to make two threads.

Never mind, I can't find another thread. Deja Vu.

Browsing both Facepunch and Ulysses Forums really messes with your mind. https://facepunch.com/showthread.php?t=1508347

Anyways, I'm a bit confused why you posted this here. The people in the Facepunch thread suggested that you either:

A) Just run the commands via console
B) Copy the commands' function to your file and run them

Both of these will achieve the same thing except option A will likely print (Console) did something. Unless that really bothers you I think A is a better option because there's really no point in copying the code when you can just call it with a command.
« Last Edit: March 03, 2016, 12:28:28 PM by roastchicken »
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline Desasterx3

  • Newbie
  • *
  • Posts: 18
  • Karma: -1
Re: Ulx command running two ulx commands
« Reply #2 on: March 03, 2016, 10:28:12 PM »
Thanks for the answer.

Offline Desasterx3

  • Newbie
  • *
  • Posts: 18
  • Karma: -1
Re: Ulx command running two ulx commands
« Reply #3 on: March 04, 2016, 08:05:33 AM »
I cant seem to figure it out... Can you try to make an example piece of code? Sorry for bothering...

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given