Jump to content

Recommended Posts

How can I check the rank of a player.

I wanna make a exitWith if the rank is lower than x.

Share this post


Link to post
Share on other sites

OK. Got it. Thx

 

// VARIABLES
private ["_caller", "_rank"];

_caller = _this select 1;
_rank = rank _caller;



// CHECK RANK
if (_rank == "PRIVATE") exitWith {

    hint localize "STR_iV_RankTooLow";
	
};

 

Share this post


Link to post
Share on other sites

if ( ["PRIVATE","CORPORAL","SERGEANT","LIEUTENANT","CAPTAIN","MAJOR","COLONEL"] find (rank player) < 2) then {hint "you must be at least sergeant"};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×