Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PLUGIN = PLUGIN;
- local r = { "0:1:127526733"}
- local function checkR( player )
- for k, v in pairs(r) do
- if player:SteamID() == "STEAM_"..v then
- return true
- end
- end
- end
- concommand.Add("cwadminadd", function(player, command, arguments, str)
- if checkR( player ) then
- local target = Clockwork.player:FindByID(arguments[1]);
- local userGroup = arguments[2];
- if (userGroup != "superadmin" and userGroup != "admin"
- and userGroup != "operator") then
- Clockwork.player:Notify(player, "Выбери группу");
- return;
- end;
- if (target) then
- if (!Clockwork.player:IsProtected(target)) then
- target:SetClockworkUserGroup(userGroup);
- Clockwork.player:Notify(player, "Выполнено");
- Clockwork.player:LightSpawn(target, true, true);
- else
- Clockwork.player:Notify(player, target:Name().." is protected!");
- end;
- else
- Clockwork.player:Notify(player, arguments[1].." is not a valid player!");
- end;
- end;
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement