ULX

Author Topic: editing the ulx  (Read 1710 times)

0 Members and 1 Guest are viewing this topic.

Offline tzahush

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
editing the ulx
« on: March 14, 2014, 02:14:52 PM »
hey guys im trying to add a small ulx command.
This is the function's name.
function ulx.faction(calling_ply, faction)

This is the end of it:
faction:addParam{ type=ULib.cmds.StringArg, hint="name of the faction", ULib.cmds.takeRestOfLine }

For some reason When i use ulx faction 'name', my error says that the parameter faction hasns't been defined yet, although as i understood by look at examples, it should get defined already, just when i use the command, for example: ulx faction hello.
A few other questions:
1.Can I ristrict tools to only steamid's? and not usergroups?
2.Can i create a table in the ulx plugin and customise it as my own? meaning i'll use it and it wont inherit from the players who are online?

Offline tzahush

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
Re: editing the ulx
« Reply #1 on: March 15, 2014, 01:13:47 PM »
Bump

Offline tzahush

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
Re: editing the ulx
« Reply #2 on: March 16, 2014, 07:26:18 AM »
bump, please need help.

Offline Eccid

  • Full Member
  • ***
  • Posts: 115
  • Karma: 11
  • Hey, come on... We just met...
    • Terror Abound! Steam Group
Re: editing the ulx
« Reply #3 on: March 16, 2014, 08:02:13 AM »
We can't help much with so little information, if you can post your code, we can test it and make changes.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: editing the ulx
« Reply #4 on: March 16, 2014, 09:45:45 AM »
Also, don't bump your thread. There's no point. We all see it. Unless it somehow finds its way off the first page of threads, there is no need to bump it twice a day.