முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

SetPlayerAdmin

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Sets the player as an RCON admin.

NameDescription
playeridThe ID of the player.
bool:admintrue for set as an RCON admin, false for remove from RCON admin.

Returns​

This function does not return any specific values.

Examples​

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/admin", true))
{
SetPlayerAdmin(playerid, true);
SendClientMessage(playerid, -1, "SERVER: You are now RCON admin!");
return 1;
}
return 0;
}
  • IsPlayerAdmin: Check if a player is logged in as an RCON admin.