Skip to content
iFarbod edited this page Jun 28, 2014 · 10 revisions

SetPlayerAdmin(playerid, bool:admin);

Sets the player's RCON admin.

Parameters:

  • playerid : The Player to set his RCON Admin status.
  • admin : Toggle the admin status. (true/false)

Example Usage :

// When you type /rconlogout, You will logout from RCON System.
CMD:rconlogout(playerid, params[])
{
	if(!IsPlayerAdmin(playerid)) return 0; // Checking is player is already logged into RCON.
	SetPlayerAdmin(playerid, false); // Log him out
	return 1; // Returning 1 to process Command in zCMD. Avioding "SERVER: Unknown Command." Message.
}