Is there any way to get player group?
Like doing usergroup add playername VIP
How can I get that group?
Code:If(player = VIP)?
Solved Getting player's group, creating new? (C#)
Discussion in 'Rust Development' started by TheMechanical97, Jan 9, 2016.
-
Wulf Community Admin
-
And how can i Implement that on my .cs? if(GetUserGroups(player) = VIP)?
-
Wulf Community Admin
You'd need to access it properly too, permission.GetUserGroups(player.UserIDString). -
Well i'll use betterchat groups xD
-
Wulf Community Admin
-
But betterchat:
BetterChat.call("PlayerInGroup", player, group);
should retrurn true or false if group = VIP
BetterChat.call("PlayerInGroup", player, VIP); -
Wulf Community Admin
-
Im gonna use the group permissions and Chat tag :S
-
Wulf Community Admin
-
There is any form to make like... a database with all players and assign each one one of the four attributes i made?
-
Wulf Community Admin
-
like:
Code:TheMechanical97: { Job: Miner Attribute: Strenght }
-
Wulf Community Admin
-
Why im getting an error? Why it needs to be a bool? I wnt it to be a string :S
Code:BetterChat.Call("PlayerInGroup", player, group); string group; if (group = "player") { }
-
Wulf Community Admin
Code:if (BetterChat?.Call("PlayerInGroup", player, group);) { Puts("They are in the group!"); }
-
ahhhhhh
[DOUBLEPOST=1452381282][/DOUBLEPOST]maybe:
Code:BetterChat.Call("GetPlayersGroups", player) string group; if (group = "player") etc
-
Wulf Community Admin
-
And how can I check if that array is = to the group i want?
-
Wulf Community Admin