Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Setup Server
- local ServerScriptService = game:GetService("ServerScriptService")
- local Cmdr = require(ServerScriptService.Cmdr)
- Cmdr:RegisterHooksIn(ServerScriptService.Server.Hooks)
- Cmdr:RegisterDefaultCommands()
- --Setup Client
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Cmdr = require(ReplicatedStorage:WaitForChild("CmdrClient"))
- --Setup Permissions
- local admins = {
- [0] = true,
- }
- return function(registry)
- registry:RegisterHook("BeforeRun", function(context)
- if context.Group == "DefaultAdmin" and not admins[context.Executor.UserId] then
- return "Vous n'avez pas la permission d'éxécuter cette commande."
- end
- end)
- end
- --Commande pour avoir votre UserId rapidement
- print(game.Players:GetUserIdFromNameAsync("username"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement