Author Topic: Run !god on join?  (Read 1304 times)

0 Members and 2 Guests are viewing this topic.

Offline Litleck

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Run !god on join?
« on: August 04, 2018, 03:49:51 PM »
Hello,

So I recently made a Garry's mod server and I'm trying to get it so that upon joining the server the player will be put into god mode and if they want to remove god they can just use !ungod.  If there's any addons for ULX or anything else that I could be given that would be great.

Thanks.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Run !god on join?
« Reply #1 on: August 05, 2018, 01:55:45 PM »
Easily done.

Look at the code for !God to see how it's done and put it into a playerinitialspawn hook

Offline Litleck

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Run !god on join?
« Reply #2 on: August 05, 2018, 07:27:02 PM »
I have no idea how to do hooks and coding for garrys mod.  Where would I put the lua file and what would I put in it?