Hi! is there any way i can make a Administrate command so that when you have it off you cant noclip, pick up props or pick up people? I really need this because when people just wanna physgun a person to get there attention i pick them up. Thanks
concommand.Add to make your admins run the command, http://wiki.garrysmod.com/page/Player/IsAdmin to check if the player that's running the command is admin, http://wiki.garrysmod.com/page/Player/SetUserGroup to temporally set a player usergroup
We won't accept a "I'm a lua noob", if you can place all that together, hire someone to make this script
this is basic code for what do you want, you can edit this for whatever you want. enjoy
local access = nil
concommand.Add( "yourcommand", function( ply, cmd, args )
if ply:IsAdmin() then
if access == nil then
access = true
elseif access == true then
access = false
elseif access == false then
access = true
end
end
end)
local pickupblock = {"prop_physics" , "player"}
hook.Add( "PhysgunPickup", "Allow Player Pickup",function( ply, ent )
for k , v in pairs(pickupblock) do
if ( ent:GetClass():lower() == v ) then
return access
end
end
end)
hook.Add( "PlayerNoClip", "DisableNoclip", function(ply)
return access
end)
THANK YOU MAN!!!
No, if you use with serverguard you need to disabling noclip of serverguard.
I disable noclip of the game.and make some module of the script
What do you mean? How do i get it working?
serverguard have a custom functions and another way to the admin system.
so if you using with serverguard the command to disable the noclip it's will not work.
so this will not work with serverguard?
Right , this is not support with serverguard.
Is there any way you could help me create a serverguard one?
Jobs & Freelancers
· gmodstore
Ty
Sorry, you need to Log In to post a reply to this thread.