Jump to content
Sign in to follow this  
ZZEZ

Checking if player is admin

Recommended Posts

Is there some way to check if a player is logged in or voted as admin and then give him special abilities?

something like this..but I don't think it will work at all.

if (player == admin) then {xxxx;};

Share this post


Link to post
Share on other sites

I use this:

//Check if has admin rights or it is singleplayer
_isAdmin = serverCommandAvailable "#kick";

As said in the comments it would be true in single player.

In a local (listen) server, I think that maybe this is also true for host. So in a listen server you could maybe have both an admin and a host which this is true for. In dedicated it can only be true for max one player.

  • Like 1

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
Sign in to follow this  

×