A couple suggestions for the SF Hud:
1. Allow hud.unlink() to be used on anyone, makes sense that you can't force people into your hud, but it makes no sense that you can't force them out.
2. A hook ("checkhudlink", like checktricorderoverride) to prevent people from linking, even if they have use perms.
(06-11-2021, 05:36 PM)тѕсм.Quiru Wrote: 2. A hook ("checkhudlink", like checktricorderoverride) to prevent people from linking, even if they have use perms.
If the first suggestion is getting approved then this doesn't need to be added, simply do :
hook("hudlink", "You shall not pass", function(player)
if player:isNotAllowed() then hud.unlink() end
end)
The17thDoctor: Server take me to the most handsome person srcds_linux: I cant send people to themselves...
I've made hud.unlink() work for all players on the client side, and have also added some extra server side functions to track and manage linked players. You can call hud.unlink() inside the hudlink hook to deny linking.
What if a player is cloaked ? What if he's out of sight ? What if you're AFK ? etc... There are so many cases where you can't know. Despite what my nefarious side would want, SF should not be all knowing.
The17thDoctor: Server take me to the most handsome person srcds_linux: I cant send people to themselves...