Acho que seja +/- assim:
No topo:
Код:
new Text3D:Admin[MAX_PLAYERS];
Aн o comando:
Код:
if(strcmp(cmd, "/Adminduty", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo estб permitido");
return 1;
}
if(AdminDuty[playerid] == 1)
{
format(string,sizeof(string), "[ID: i%] Entrou em trabalho de ADM", playerid);
ABroaCast(COLOR_LIGHTRED, string)
AdminDuty[playerid] = 1;
Admin = Create3DTextLabel("Admin Duty",COLOR_GREEN,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
return 1;
}
else if(AdminDuty[playerid] == 1)
{
format(string,sizeof(string), "[ID: i%] Saiu do trabalho de ADM", playerid);
ABroaCast(COLOR_LIGHTRED, string)
AdminDuty[playerid] = 0;
Delete3DTextLabel(Admin[playerid]);
return 1;
}
return 1;
}
Pronto...
Tб aн....