Author Topic: Need help making a custom command  (Read 2627 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

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
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 PM.

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.

Offline BlueNova

  • Full Member
  • ***
  • Posts: 113
  • Karma: 13
  • The most powerful force in the universe.
Re: Need help making a custom command
« Reply #3 on: December 21, 2018, 12:27:50 PM »
Still dont get it i havnt done anything with lua before so if you could make it for me that would be great.

Perhaps you should learn some lua so that you can make the command yourself instead of asking for someone else to just do it for you? Granted I'm late on this topic but still