Qual o erro disso?
#1

Quais sгo meus erros aqui ? como posso melhorar esse sistema ?
Quando da /trabalhar ele diz que o cara ta de hack, help!!

pawn Код:
public VerificarHacks()
{
    new Float:health;
    new Float:colete;
    new Float:vidacarro;
    new veh;
//_________________________________________
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        GetPlayerArmour(i,colete);
        GetPlayerHealth(i,health);
        veh = GetPlayerVehicleID(i);
        GetVehicleHealth(veh, vidacarro);
        if (PlayerInfo[i][pAdmin] == 0 && gPlayerLogged[i] != 0)
        {
            if(TemAdmin >= 1)
            {
                if (health > 101.0)
                {
                    format(gstring, 128, "Atenзгo: %s estб com Hack de Vida",PlayerName(i));
                    ABroadCast(COLOR_YELLOW,gstring,1);
                }
                if (colete > 101.0)
                {
                    format(gstring, 128, "Atenзгo: %s estб com Hack de Colete",PlayerName(i));
                    ABroadCast(COLOR_YELLOW,gstring,1);
                }
                if (vidacarro > 1001.0)
                {
                    format(gstring, 128, "Atenзгo: %s estб com GodCar",PlayerName(i));
                    ABroadCast(COLOR_YELLOW,gstring,1);
                }
            }
            else if(TemAdmin == 0)
            {
                if (health > 101.0)
                {
                    format(gstring, 128, "Atenзгo todos: %s estб com Hack de Vida e foi kickado",PlayerName(i));
                    SendClientMessageToAllEx(COLOR_YELLOW, gstring);
                    Kick(i);
                }
                if (colete > 101.0)
                {
                    format(gstring, 128, "Atenзгo todos: %s estб com Hack de Colete e foi kickado",PlayerName(i));
                    SendClientMessageToAllEx(COLOR_YELLOW, gstring);
                    Kick(i);
                }
                if (vidacarro > 1001.0)
                {
                    format(gstring, 128, "Atenзгo todos: %s estб com GodCar e foi kickado",PlayerName(i));
                    SendClientMessageToAllEx(COLOR_YELLOW, gstring);
                    Kick(i);
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Qual o erro disso? - by Hiuship - 17.09.2011, 23:37
Re: Qual o erro disso? - by lukas_loky - 17.09.2011, 23:44
Re: Qual o erro disso? - by Bruno Pereira - 17.09.2011, 23:47
Re: Qual o erro disso? - by lukas_loky - 17.09.2011, 23:52
Re: Qual o erro disso? - by Bruno Pereira - 17.09.2011, 23:54
Re: Qual o erro disso? - by lukas_loky - 18.09.2011, 00:00

Forum Jump:


Users browsing this thread: 1 Guest(s)