warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
SetPlayerAdmin
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Sets the player as an RCON admin.
Name | Description |
---|---|
playerid | The ID of the player. |
bool:admin | true 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;
}
Related Functions
- IsPlayerAdmin: Check if a player is logged in as an RCON admin.
Related Callbacks
- OnRconLoginAttempt: Called when an attempt to login to RCON is made.