Ulysses

General => Developers Corner => Topic started by: Ballzz on November 30, 2018, 11:10:24 AM

Title: Need help making a custom command
Post by: Ballzz 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.
Title: Re: Need help making a custom command
Post by: iViscosity 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)
Title: Re: Need help making a custom command
Post by: Ballzz 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.