[Ajuda] Problema Administrativo
#1

Problema: Sempre Que Dou Admin A Alguem, Esse Alguem Sai Do Game, Volta Sem ADMIN

Atitudes Que Tomei: Ja Fui Na Pasta Dos Players Editei O Nнvel Administrativo E Nгo Adiantou.

SS Do Problema: Ta No "Problema Tйcnicamente xD"


ALGUEM AJUDA ?
Reply
#2

Como Vamos Fazer P/ Carregar O Nнvel Administrativo ? '-'
Reply
#3

up '-' topico ja foi la pra longe :F
Reply
#4

qual o sistema de admin q tu usa?
Reply
#5

Poste os comandos '-'
Reply
#6

Faz assim, passa o que carrega todos os dados, e o new do Admin
Reply
#7

Pra Comeзar, Pra Dar Adm й assim :

pawn Код:
if(strcmp(cmd, "/daradm", true) ==0 )
    {
        GetPlayerName(playerid, sendername, 256);
        if(strcmp(sendername,"meu_nome",true)==0 || strcmp(sendername,"outro_nome",true)==0 || strcmp(sendername,"outro_nome_de_adm",true)==0)
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /daradm [ id ] [Level 0 б 1342]");
                return 1;
            }
            new para1;
            new level;
            para1 = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            level = strval(tmp);
            GetPlayerName(playerid, sendername, 256);
            {
                if(IsPlayerConnected(para1))
                {
                    if(para1 != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        PlayerInfo[para1][pAdmin] = level;
                        printf("ADMIN CMD: %s has promoted %s to a level %d admin.", sendername, giveplayer, level);
                        format(string, sizeof(string), "   Voce foi promovido para level  %d de Admin - Por %s", level, sendername);
                        SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                        format(string, sizeof(string), "   Voce promoveu o(a) %s Para o level %d de Admin.", giveplayer,level);
                        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                        format(string, sizeof(string), "%s Promoveu %s a adm level %d ",sendername,giveplayer,level);
                    }
                }
                SendClientMessage(playerid, COLOR_LIGHTGREEN, "[BCF]: Voce nгo esta autorizado a usar este comando!");
            }
        }
        return 1;
    }
Reply
#8

Obrigado Pela Ajuda (fуrum samp cada vez + tenso)

Consegui resolve o problem de adm

agora , os sуcios / vips nгo salvam . . . . TENSO !

Os adm era sу trocar o: ninguem0
por : meu_nome

mas os vip n й igual x.x
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)