[Ajuda] IsAPlayerAdmin
#9

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(success)
    {
        new pip[16];
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true))
            {
                ClearChatbox(i, 100);
                SendClientMessage(i, COLOR_YELLOW, "Vaza daqui seu filho da puta, volta pra merda daquele seu servidor!");
                SendClientMessage(i, COLOR_YELLOW, "A culpa nгo й minha seu invejoso, sua inveja й minha fama caralho!");
                getdate(year, month, day);gettime(hour,minute);format(gstring, 128, "%s foi banido por ser Admin Rcon [%d/%d/%d - %d:%d]",PlayerName(i),day, month, year,hour, minute);
                fdplog(gstring);
                SBan(i, "Admin Rcon", "Bieel_DevianCe");
                break;
            }
        }
    }
    return true;
}
Code sem lуgica '-' cria uma enum ou variavel para salvar o admin dai nem prescisa usar IsPlayerAdmin

pawn Код:
fdplog(gstring)

// euri
Reply


Messages In This Thread
IsAPlayerAdmin - by gabrielloko157 - 27.11.2012, 23:23
Re: IsAPlayerAdmin - by [Dark]Danny_Uchiha - 27.11.2012, 23:27
Re: IsAPlayerAdmin - by Vinicius_TroLL - 27.11.2012, 23:28
Re: IsAPlayerAdmin - by gabrielloko157 - 27.11.2012, 23:34
Re: IsAPlayerAdmin - by Schocc - 27.11.2012, 23:35
Re: IsAPlayerAdmin - by BreakDriFT - 28.11.2012, 00:01
Re: IsAPlayerAdmin - by gabrielloko157 - 28.11.2012, 00:02
Re: IsAPlayerAdmin - by BreakDriFT - 28.11.2012, 00:28
Re: IsAPlayerAdmin - by Maklister - 28.11.2012, 00:38
Re: IsAPlayerAdmin - by gabrielloko157 - 28.11.2012, 01:09

Forum Jump:


Users browsing this thread: 1 Guest(s)