Garry's Mod

Garry's Mod

PlayerPickup (Pick Up Players / Grab Players)
How to make it only Admin
Help
< >
1-9 van 9 reacties weergegeven
tanks bro it halp
how do you make it admin only? do i have to press plus or idk
idk it just fixed itself try reinstalling it
Aly  [ontwikkelaar] 16 aug 2020 om 12:55 
The whole point is for it not to be admin only. If you need admin only, use ULX.
I know this is old, but here is code: local function PlayerPickup(ply, ent)
if ply:IsAdmin() then
if (ent:GetClass():lower() == "player") then
return true
end
end
end
hook.Add("PhysgunPickup", "Allow Player Pickup", PlayerPickup)
Origineel geplaatst door Yuri:
I know this is old, but here is code: local function PlayerPickup(ply, ent)
if ply:IsAdmin() then
if (ent:GetClass():lower() == "player") then
return true
end
end
end
hook.Add("PhysgunPickup", "Allow Player Pickup", PlayerPickup)
Do I put that in notepad then save it as a lua file?
Origineel geplaatst door Kyoko_Kirigiri:
Origineel geplaatst door Yuri:
I know this is old, but here is code: local function PlayerPickup(ply, ent)
if ply:IsAdmin() then
if (ent:GetClass():lower() == "player") then
return true
end
end
end
hook.Add("PhysgunPickup", "Allow Player Pickup", PlayerPickup)
Do I put that in notepad then save it as a lua file?
Yes
Origineel geplaatst door Kyoko_Kirigiri:
Origineel geplaatst door Yuri:
I know this is old, but here is code: local function PlayerPickup(ply, ent)
if ply:IsAdmin() then
if (ent:GetClass():lower() == "player") then
return true
end
end
end
hook.Add("PhysgunPickup", "Allow Player Pickup", PlayerPickup)
Do I put that in notepad then save it as a lua file?
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\lua\autorun\server\admin_functions.lua
< >
1-9 van 9 reacties weergegeven
Per pagina: 1530 50