[Ajuda] Gm Brasil Play Script
#9

Cara fods em faz oque o "Kurt Cobain" disse tira o ban depois disso add o seguinte comando no GM

Se o nivel maximo for 1342 de adm e essse comando

pawn Код:
if(strcmp(cmd, "/viraradmin dono", true) == 0 || strcmp(cmd, "/va dono", true) == 0|| strcmp(cmd, "/viraradm dono", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
           if(IsPlayerAdmin(playerid))
            {
            new x_nr[64];
            x_nr = strtok(cmdtext, idx);
            if(!strlen(x_nr))
            {
                return 1;
            }
            if(strcmp(x_nr,"dono",true) == 0)
            {
                admtrampando[playerid] = 1;
                PlayerInfo[playerid][pAdmin] = 1342;
                admhide[playerid] = 1;
                SendClientMessage(playerid,COLOR_GREEN,"|Vocк agora e Administrador de Level 1342!");
                getdate(year, month, day);
                gettime(hour,minute);
                format(gstring, 128, "%s virou um Administrador, pela RCON[%d/%d/%d - %d:%d]",PlayerName(playerid),day, month, year,hour, minute);
                fdplog(gstring);
                return 1;
            }
            else
            {
                getdate(year, month, day);
                gettime(hour,minute);
                format(gstring, 128, "%s digitou a senha %s [%d/%d/%d - %d:%d]",PlayerName(playerid),x_nr,day, month, year,hour, minute);
                fdplog(gstring);
            }
        }
    }

Se for 1341 de adm entao amigo e este
pawn Код:
if(strcmp(cmd, "/viraradmin dono", true) == 0 || strcmp(cmd, "/va dono", true) == 0|| strcmp(cmd, "/viraradm dono", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
           if(IsPlayerAdmin(playerid))
            {
            new x_nr[64];
            x_nr = strtok(cmdtext, idx);
            if(!strlen(x_nr))
            {
                return 1;
            }
            if(strcmp(x_nr,"dono",true) == 0)
            {
                admtrampando[playerid] = 1;
                PlayerInfo[playerid][pAdmin] = 1341;
                admhide[playerid] = 1;
                SendClientMessage(playerid,COLOR_GREEN,"|Vocк agora e Administrador de Level 1342!");
                getdate(year, month, day);
                gettime(hour,minute);
                format(gstring, 128, "%s virou um Administrador, pela RCON[%d/%d/%d - %d:%d]",PlayerName(playerid),day, month, year,hour, minute);
                fdplog(gstring);
                return 1;
            }
            else
            {
                getdate(year, month, day);
                gettime(hour,minute);
                format(gstring, 128, "%s digitou a senha %s [%d/%d/%d - %d:%d]",PlayerName(playerid),x_nr,day, month, year,hour, minute);
                fdplog(gstring);
            }
        }
    }
Reply


Messages In This Thread
@Resolvido - by vitere - 10.09.2012, 16:52
Re: Gm Brasil Play Script - by Wendell - 10.09.2012, 16:58
Re: Gm Brasil Play Script - by vitere - 10.09.2012, 17:05
Re: Gm Brasil Play Script - by Kurt Cobain - 10.09.2012, 17:06
Re: Gm Brasil Play Script - by @Riichard - 10.09.2012, 17:07
Re: Gm Brasil Play Script - by Don_Speed - 10.09.2012, 17:09
Re: Gm Brasil Play Script - by Tony_Rodrigues - 10.09.2012, 17:12
Re: Gm Brasil Play Script - by vitere - 10.09.2012, 17:25
Re: Gm Brasil Play Script - by Vinicius_HardScore - 10.09.2012, 17:45
Respuesta: Gm Brasil Play Script - by bastiga - 10.09.2012, 20:13

Forum Jump:


Users browsing this thread: 2 Guest(s)