General > Developers Corner

ULXToolRestricter

<< < (3/4) > >>

RecoX:
Ive added Ant-Stool:Anti-Sent Stops a non admin from spawning a sent and has an exclusion list like the others

Chief_runningwater:
How would I add this to my server, I'm a little confused on how to set this up....

RecoX:
Well currently you can't as its not checking proply :)
But the way you set it is real simple

Add your steam ids you want it not to affect
and put in lua/autorun

Chief_runningwater:

--- Quote from: RecoX on July 07, 2008, 11:50:20 PM ---Well currently you can't as its not checking proply :)
But the way you set it is real simple

Add your steam ids you want it not to affect
and put in lua/autorun

--- End quote ---
Thanks that helped a lot now all I need to do is wait till you release it  ;D

spbogie:

--- Quote from: RecoX on July 06, 2008, 12:31:47 PM ---local Restricted_Tools =
-- Add your restrected tools here
{
    "#Anti-NoClip",
   "adv_duplicator",
    "Gcombat",
    "Anti-NoClip",
    "linktool",
   "stacker",
}
--Add your steam id's that this should not affect
local Allowed_players =
{
    "STEAM:1:0:5447", -- Don't forget to remove this  Lay out exactly like that so "STEAM:1:0:88888",    "
}
hook.Add( "CanTool", "GetTool", gettool)
 function gettool(ply, tr, toolmode)
   if Restricted_Tools[toolmode] then
   if pl:IsAdmin() then return true
   if ply:SteamID() == Allowed_players then return true
   if pl:SuperAdmin() then return true
   if return false then
   ply:PrintMessage(HUD_PRINTTALK, "ULXAnti-Stool: Sorry But your not an Admin, Or In the Excluded Player List")
   end
   end
 end
 hook.Add( "CanTool", "UseTool", UseTool );

--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version