Garry's Mod

Garry's Mod

PlayerPickup (Pick Up Players / Grab Players)
How to make it only Admin
Help
< >
Zobrazuje se 19 z 9 komentářů
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  [vývojář] 16. srp. 2020 v 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)
Yuri původně napsal:
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?
Kyoko_Kirigiri původně napsal:
Yuri původně napsal:
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
Kyoko_Kirigiri původně napsal:
Yuri původně napsal:
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
< >
Zobrazuje se 19 z 9 komentářů
Na stránku: 1530 50