Ulysses Stuff > Ulysses Release Archives

Anti-Stool Relased [ULXTool]

(1/2) > >>

RecoX:
WARNING!: If you have ASpam installed You must update it to latest !

New Name: ULX Anti-Stool
Version: 1.1.2
Author: Reco / With Help from Jay209015
Purpose:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------This Module will stop normal users from using a certen tool EG; Anti-NoClip Stool will be restirected to Allowed list and admins
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
How To Install:
-----------------------------------------------------------
Simply drop the lua file in your lua/autorun-
-----------------------------------------------------------

How to add users:

Open up garrysmod/data/antistool_palyers.txt and add the steam ids that you want.

Download--------------------
 http://dev-solution.org/resources/gmod/addons/ULX Anti-Stool.zip
-------------------------------

Chironex:
Your link isn't working, here is the working one: http://dev-solution.org/resources/gmod/addons/ULX_Anti-Stool.zip :)

About the script:

No offense but i just don't understand why you did so complicated! I mean, why calling functions like table.HasValue or string.find(), or for() loops..you don't need them in this script. Also, ply:IsAdmin() return true if the player is superadmin, so you don't need to use ply:IsSuperadmin()...think about making efficient code ;)

I also don't understand why you UpdateAllowedPlayers() at PlayerSpawn, don't you think it should be better with a console command for admins?
Well you need 2 commands:
"antistool_restrict_tool <toolname>" which will add <toolname> in AStool_Table["Tools"], and save AStool_Table in the file.
"antistool_allow_player <steamid>" which will add <steamid> in AStool_Table["Players"], and save AStool_Table in the file.

RecoX:
Thanks

Megiddo:
Neato! :)

RecoX:
Ty! :)

Navigation

[0] Message Index

[#] Next page

Go to full version