Garry's Mod

Garry's Mod

Not enough ratings
Minecraft Style Commands
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Build, Fun
File Size
Posted
Updated
6.019 KB
14 Jan, 2018 @ 2:34pm
14 Jan, 2018 @ 5:05pm
5 Change Notes ( view )

Subscribe to download
Minecraft Style Commands

Description
This puts the minecraft commands and style into your gmod server. This uploads a help system if your a player! You can add more commands and other stuff by following these steps.
To upload a command follow this
hook.Run("AddCommand", name, usage, description) -- usage is like op <player>
some default functions added to players are
ply:GetAllPerms()
ply:AddPerm(perm)
ply:SetPrefix(prefix)
ply:SetSuffix(suffix)
ply:GetPrefix()
ply:GetSuffix()
ply:RemovePermission(perm)
ply:HasPerm(perm)
and more. The Commands window you can see by loggin in to the server and typing /help
to do most commands you will need to be op unless you have a plugin that adds permission
to op yourself go to console and type /op <yourname>
all commands in game can be done on console

This also adds in colored chat for both console and ingame!

You can change the command sign of / to anything you want by going to data/commandsymbols.txt

to actually add in a command after adding it to the addcommand list you can do this

hook.Add("command", specialname, function(ply, cmd, args)

//check for command here and then do whatever

end)

some commands it comes with:
op <player> - ops the player specified
deop <player> - deopes the player specified
kick <player> [<reason>] - kicks the player for reason
ban <player> [<reason>] - bans the playter for reason
unban <player> - unbans the player
kill <player> - kills the player
teleport/tp [<player/coords>] [<player>] - teleports player
ect

Enjoy and have fun
7 Comments
Mr.Willer 18 Apr, 2018 @ 10:50pm 
sorry for any typo
Mr.Willer 18 Apr, 2018 @ 10:48pm 
thanks i think dat toast has a good Q
it might make the addon a better one to add a player selector or somthing like that to the addon dat toast suggested pls make it thanks also keep u the good work if you ever run out of ideas for addons ask me i have some good/challsnging addon ideas thanks and again keep up the good work i rely wish i knew gmod coding im good at scratch but not hard stuff like lua.
Rocket Launcher 18 Apr, 2018 @ 7:35pm 
no i mean can you make this addon but a seperate version with only the tp command
Mikemik44  [author] 18 Apr, 2018 @ 4:10pm 
if your the only player with a j in their name you can just do /op J and it will auto detect you and op you
Mikemik44  [author] 18 Apr, 2018 @ 4:09pm 
sorry i believe you can do /op JHW, im still working ont his though so if not ill update it where it can. Dat toast you can do /tp or /teleport
Mr.Willer 17 Apr, 2018 @ 3:18pm 
i cant op myself on my own 2 player server plz help
Rocket Launcher 26 Feb, 2018 @ 3:26am 
can you make one thats just /tp