[Ajuda] Ajudaaa rcon banindo
#5

Код:
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))
            {
                SendClientMessage(i, COLOR_YELLOW, "OPA!!!!!!!!!!!!!!!!!!");
				if(ServerOwner[i] != 1)
				{
					ClearChatbox(i, 100);
		        	SendClientMessage(i, COLOR_YELLOW, "Vaza daki seu nego fdp, volta pra merda dakele seu servidor!");
			    	SendClientMessage(i, COLOR_YELLOW, "A culpa nгo eh minha seu invejoso, sua inveja eh minha fama caralho!");
					getdate(year, month, day);
					gettime(hour,minute);
					format(gstring,sizeof(gstring), "%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", "Automatico");
					break;
				}
            }
        }
    }
    return 1;
}
Lembrando que se eu tirar isso a hora que vou logar no sv ou qualquer outra pessoa e banido automaticamente
Reply


Messages In This Thread
Ajudaaa rcon banindo - by Xtable - 30.06.2013, 21:49
Re: Ajudaaa rcon banindo - by GabrielSantos - 30.06.2013, 21:51
Re: Ajudaaa rcon banindo - by Xtable - 30.06.2013, 21:55
Re: Ajudaaa rcon banindo - by GabrielSantos - 30.06.2013, 22:01
Re: Ajudaaa rcon banindo - by Xtable - 30.06.2013, 22:02
Re: Ajudaaa rcon banindo - by GabrielSantos - 30.06.2013, 22:05
Re: Ajudaaa rcon banindo - by Xtable - 30.06.2013, 22:08
Re: Ajudaaa rcon banindo - by GabrielSantos - 30.06.2013, 22:09
Re: Ajudaaa rcon banindo - by Xtable - 30.06.2013, 22:13
Re: Ajudaaa rcon banindo - by GabrielSantos - 30.06.2013, 22:32

Forum Jump:


Users browsing this thread: 1 Guest(s)