-
-
Notifications
You must be signed in to change notification settings - Fork 7
KPR_fnc_hasRank
Christian edited this page Aug 22, 2018
·
2 revisions
Checks if the given player has at least the given rank. Returns true if he has and false if the player hasn't or wasn't found.
- 0: STRING - Steam UID of the player
- 1: NUMBER - Rank to check (default: 0)
- BOOL
// Show you that "Testman" is a cool guy, if he's at least rank 10
{
if (name player == "Testman") exitWith {
if ([getPlayerUID _x, 10] call KPR_fnc_hasRank) then {
hint "Man, Testman is a cool guy!";
};
};
} forEach (allPlayers - entities "HeadlessClient_F");