跳到主要内容

SetPlayerAdmin

注意

这个函数是在omp v1.1.0.2612中添加的,在以前的版本中不起作用!

描述

设置玩家为 RCON 管理员。

参数说明
playerid要设置的玩家 ID
bool:admintrue设置为 RCON 管理员,false移除权限

返回值

此函数不返回特定值。

示例代码

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/admin", true))
{
SetPlayerAdmin(playerid, true);
SendClientMessage(playerid, -1, "服务器:你现在是RCON管理员了!");
return 1;
}
return 0;
}

相关函数

相关回调