Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 2 3 4 5 … 18 Next »
Prop Protection in SF
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Prop Protection in SF
05-12-2021, 04:49 PM,
#1
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
Prop Protection in SF
Hey, would it be possible to add a function or method to get the current Prop Protection in SF ?  

Including the "Buddies" with their Permissions, but also stuff like "Allow everyone to use your props." and "Allow these players to also use your props:" would be nice too Big Grin
Find
Reply
05-12-2021, 04:54 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Prop Protection in SF
What's the reason for needing this information vs. the existing propprotection.isAllowedFor* functions?
Find
Reply
05-12-2021, 05:36 PM,
#3
57e11a Offline
Cheating Donating Member
***
Posts: 198
Threads: 68
Joined: Apr 2019
RE: Prop Protection in SF
Fairly sure ano wants the ability to check who has access to the owner's stuff, maybe extend the functions to propprotection.isAllowedFor*(thing: entity | player, accessType: enum, plyToCheck: player? = ents.owner()) so you can choose who to check propprotection for?

she/her
Founder of The Anisu Corporation
[Image: iZUefQi.gif]
Find
Reply
05-12-2021, 05:39 PM, (This post was last modified: 05-12-2021, 05:48 PM by 4N0NYM. Edited 1 time in total.)
#4
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
RE: Prop Protection in SF
I didnt saw that this Function exist.

Code:
print(propprotection.isAllowedForPlayer(find.playerByName("doc"),propprotection.ACCESS_USE))
it return always true. Despite him not being on my Buddies list nor having other stuff activated.
Find
Reply
05-12-2021, 05:45 PM,
#5
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Prop Protection in SF
(05-12-2021, 05:39 PM)4N0NYM Wrote: I didnt saw that this Function.

Code:
print(propprotection.isAllowedForPlayer(find.playerByName("doc"),propprotection.ACCESS_USE))
  it return always true.  Despite him not being on my Buddies list nor having other stuff activated.
That's checking your access to Doc's props, not the other way round.

I've added two new functions to the propprotection library which will let you query other player's access to the chip owner's props (either for a specific entity, or for all entities just like the existing functions). They'll be available after the next restart.
Find
Reply
05-12-2021, 06:01 PM,
#6
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
RE: Prop Protection in SF
Thank you very much. Smile
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.