Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmdtext, "/admins", true) == 0)
- {
- SendClientMessage(playerid,verdel, "~> Lista de administradores conectados:");
- static bool: result;
- for(new i; i < MAX_PLAYERS; ++i) {
- new pname[24];
- GetPlayerName(i,pname,24);
- if(IsPlayerConnected(i) && IsAdmin[playerid] < 0) {
- if(IsAdmin[playerid] == 1) {
- format(string,sizeof(string),"%s [ID %d]", pname, playerid);
- }
- SendClientMessage(playerid, 0xFFFFFFAA, string);
- result = true;
- }
- }
- if(!result)
- return SendClientMessage(playerid, -1,"~> Nenhum administrador (ADM) conectado ao servidor no momento!");
- return 1;
- }
- obs: e para virar admin tem que logar tipo dps que tu loga na tua conta normal vc digita esse comandos \/
- if(strcmp(cmdtext, "/logara", true) == 0)
- {
- ShowPlayerDialog(playerid,59,DIALOG_STYLE_PASSWORD,"Logar Administrador","Digite a senha para logar na administração","Confirmar","Sair");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment