spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 22 Oct 2012 09:31 PM |
| Did roblox add the command like to check a player's group rank? If they did then whats the command? |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 09:33 PM |
http://wiki.roblox.com/index.php/GetRankInGroup_(Method) http://wiki.roblox.com/index.php/GetRoleInGroup_(Method) |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 09:38 PM |
You want...
Player:GetRoleInGroup(GroupId) |
|
|
| Report Abuse |
|
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
| |
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 22 Oct 2012 10:30 PM |
Oh wait but I'm going to use this for admin commands so is there anyway to make shure that they are a special rank? example:
if game.Players.Player:GetRoleInGroup(groupId)== "Leader" then
I know that probably doesn't work but that's just an example of what I need |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2012 11:06 PM |
| GetRoleInGroup returns the rank id. Like the leader would be 255 and everyone else would be lower. |
|
|
| Report Abuse |
|
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 22 Oct 2012 11:48 PM |
| Ok how do I know which number is which rank? |
|
|
| Report Abuse |
|
|
|
| 23 Oct 2012 12:28 AM |
...
Group Admin -> Scroll Down -> Rank (0-255) |
|
|
| Report Abuse |
|
|
|
| 23 Oct 2012 07:56 AM |
| GetRoleInGroup returns the name, GetRankInGroup returns the Id. At least according to the wiki. |
|
|
| Report Abuse |
|
|
|
| 23 Oct 2012 09:07 AM |
| @Spynaz, you hope one day your war group becomes big but you can't even find the basics of the group? |
|
|
| Report Abuse |
|
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 23 Oct 2012 09:43 AM |
Ok then is this what I would do?
local player = game.Players.Player if player:GetRoleInGroup(groupId) == 255 then |
|
|
| Report Abuse |
|
|
|
| 23 Oct 2012 09:45 AM |
| No, that would be GetRankInGroup() |
|
|
| Report Abuse |
|
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 23 Oct 2012 09:45 AM |
| We are already pretty big, and I am the leader but I'm not the owner because since I'm not BC yet, my friend owns the group. |
|
|
| Report Abuse |
|
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 23 Oct 2012 09:47 AM |
| Oh lol it already says that in the wiki on the GetRankInGroup method, thanks! |
|
|
| Report Abuse |
|
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 23 Oct 2012 09:49 AM |
| Is it possible to change somebody's rank like ChangeRankInGroup(groupID)? |
|
|
| Report Abuse |
|
|
|
| 23 Oct 2012 09:51 AM |
| No, that would be too much of an exploit risk. No way would they allow it without unimaginable security precautions. |
|
|
| Report Abuse |
|
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
| |
|