• Print

Author Topic: Combine Steam group rewards with rank  (Read 9804 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]
Re: Combine Steam group rewards with rank
« Reply #2 on: April 11, 2015, 10:01:12 pm »
"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: 2727
  • Karma: 430
    • |G4P| Gman4President
Re: Combine Steam group rewards with rank
« Reply #3 on: April 11, 2015, 10:52:18 pm »
See also -
/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?

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Combine Steam group rewards with rank
« Reply #5 on: April 12, 2015, 04:45:57 pm »
If i added
Code: [Select]
RunConsoleCommand("ulx", "adduser", target_ply, member)
under custom reared function would that work?
No.

You ought to learn Lua for Garry's Mod sometime if you're gonna own a server, just a tip.

Code: Lua
  1. REWARDS.Settings.CustomRewardFunction = function(ply) RunConsoleCommand("ulx", "adduser", ply:Nick(), "member") end
bw81@ulysses-forums ~ % whoami
Homepage

Offline FirstArmada

  • Newbie
  • *
  • Posts: 5
  • Karma: -1
Re: Combine Steam group rewards with rank
« Reply #6 on: April 13, 2015, 10:02:58 pm »
Thanks mate il try my memory isn't the greatest, remembering hooks etc will be a pain :/

  • Print