|
| 03 Feb 2013 12:11 PM |
| Is there a way for me to check if someone is in a group, and if they are, find the name of the rank that they are? |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
|
| 03 Feb 2013 12:17 PM |
| OK. Is there a way to get their rank in a giving group? |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 03 Feb 2013 12:18 PM |
Yeah.
player:GetRoleInGroup(groupId) I belive. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 03 Feb 2013 12:19 PM |
darnit, was ninja'd. :c
for i = 1, 1 do floodChecked = true end |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2013 12:20 PM |
Player:GetRankInGroup() and Player:GetRoleInGroup()
Beginner Scripter |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Feb 2013 12:22 PM |
Though you don't actually need to check if they're in the group first.
:GetRoleInGroup() will return "Guest" if the player isn't in the group. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Feb 2013 12:25 PM |
| No problem. Similarly, :GetRankInGroup() will return 0 is the player isn't in the group. |
|
|
| Report Abuse |
|
|