Author Topic: Need help making a custom command  (Read 164 times)

0 Members and 1 Guest are viewing this topic.

Offline Ballzz

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Need help making a custom command
« on: November 30, 2018, 11:10:24 AM »
Hello, so what I wanted to do is make a command for admins. I want the command to be !adminmode and i want the command to switch to the admin model and give god mode.
If anyone can help id really appreciate it thanks.

Offline iViscosity

  • Hero Member
  • *****
  • Posts: 775
  • Karma: 50
Re: Need help making a custom command
« Reply #1 on: November 30, 2018, 01:43:23 PM »
Have you tried making anything? If so, what do you have? Are you getting any errors (if so, what)?

This is a very easy thing to make yourself, so I'm going to leave you some links to point you in the right direction.

http://wiki.garrysmod.com/page/Player/GodEnable
http://wiki.garrysmod.com/page/Entity/SetModel (Player == Entity)
I'm iViscosity. I like gaming and programming. Need some help? Shoot me a PM or Join my Discord!.
--==[ Links ]==--
Steam
YouTube
Steam Group (feel free to join!)
Discord

Quote from: Steve Jobs
Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle.

Offline Ballzz

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Need help making a custom command
« Reply #2 on: December 02, 2018, 10:44:25 AM »
Still dont get it i havnt done anything with lua before so if you could make it for me that would be great.