Author Topic: Combine Steam group rewards with rank  (Read 5829 times)

0 Members and 1 Guest are viewing this topic.

Offline FirstArmada

  • Newbie
  • *
  • Posts: 5
  • Karma: -1
Combine Steam group rewards with rank
« on: April 11, 2015, 06:31:43 PM »
so i need it to be when people join the group from https://scriptfodder.com/scripts/view/84

they get member rank

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Combine Steam group rewards with rank
« Reply #1 on: April 11, 2015, 08:01:06 PM »

Look closely at that; this was taken straight from the Scriptfodder page. There's a commented section that fits your needs nicely.
You can search the forums here for how to add people to a rank via Lua.
bw81@ulysses-forums ~ % whoami
Homepage

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Combine Steam group rewards with rank
« Reply #3 on: April 11, 2015, 10:52:18 PM »
See also -
http://forums.ulyssesmod.net/index.php/topic,7247.msg

Note: This is just a framework for someone to use in their own script. By itself it wouldn't do much of anything.

Offline FirstArmada

  • Newbie
  • *
  • Posts: 5
  • Karma: -1
Re: Combine Steam group rewards with rank
« Reply #4 on: April 12, 2015, 04:41:50 PM »

Look closely at that; this was taken straight from the Scriptfodder page. There's a commented section that fits your needs nicely.
You can search the forums here for how to add people to a rank via Lua.

If i added
Code: [Select]
RunConsoleCommand("ulx", "adduser", target_ply, member)
under custom reared function would that work?

An Error Has Occurred!

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