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 … 6 7 8 9 10 … 18 Next »
Owner Faction Members Access
Thread Closed 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Owner Faction Members Access
26-08-2017, 08:28 PM,
#1
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
Question  Owner Faction Members Access
Yes, I am back once again.

So, gonna start working on starfall again and I entered in a small problem while trying to make my command chip to work with faction members also. I looked in the starfall docs for a long time and I didnt find anything related to faction members. Is there a function where I can get owners faction information? Like: Name, Player List, Rank and permissions?

Thanks,
Alanzote.

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
26-08-2017, 08:32 PM,
#2
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: Owner Faction Members Access
You can use
Code:
faction.getFactionDetails( faction.getFaction(ply) )
It returns Name,Tag,TagColour,LeaderID,Public

"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016

[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
Find
26-08-2017, 08:34 PM, (This post was last modified: 26-08-2017, 08:36 PM by Alanzote.)
#3
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Owner Faction Members Access
(26-08-2017, 08:32 PM)Red The Blue Color Wrote: You can use
Code:
faction.getFactionDetails( faction.getFaction(ply) )
It returns Name,Tag,TagColour,LeaderID,Public

Can I get a list of members or thats all?

Nevermind my last question, Thanks Red The Blue Color!

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
26-08-2017, 08:49 PM,
#4
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: Owner Faction Members Access
(26-08-2017, 08:34 PM)Alanzote Wrote:
(26-08-2017, 08:32 PM)Red The Blue Color Wrote: You can use
Code:
faction.getFactionDetails( faction.getFaction(ply) )
It returns Name,Tag,TagColour,LeaderID,Public

Can I get a list of members or thats all?

Nevermind my last question, Thanks Red The Blue Color!

You can get a list of online members with faction.getOnlinePlayers( faction )

"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016

[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
Find
27-08-2017, 12:08 AM,
#5
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
RE: Owner Faction Members Access
here a small example if you need it :
Faction = faction.getFaction(ents.owner())
FactionPlayer = {}
FactionPlayer = faction.getOnlinePlayers(Faction)
for i=1,#FactionPlayer do
if ChatAI.Whitelist[FactionPlayer[i]ConfusedteamID()] ~= true then
if FactionPlayer[i] ~= ents.owner() then
print(FactionPlayer[i]:name())
end
end
end
Find
27-08-2017, 12:13 AM,
#6
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Owner Faction Members Access
I managed to get it working guys, thanks.
P.S.: Could someone lock this thread? I cant find the button...

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
« Next Oldest | Next Newest »
Thread Closed 


  • 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.