[Ajuda] Estranho
#10

Quote:
Originally Posted by BlueX
Посмотреть сообщение
Nгo veja bem

pawn Код:
for(new a = 0; a < sizeof(Armashack); a ++)
{
        if(GetPlayerWeapon(d) == Armashack[a]){
        GetPlayerName(d, PlayerName, sizeof(PlayerName));
        format(string, sizeof(string), "-DHack- %s Foi Kickado Pelo Administrador DBot [Motivo: Weapon Hack]", PlayerName);
        SendClientMessageToAll(COLOR_LIGHTRED, string);
    Kick(a);
}
O kick esta dentro do loop a logo teria que usar o "a".
Mas olha sу, o loop a tб dentro do d:
pawn Код:
for(new d = 0; d < MAX_PLAYER; d++)
    {
        if(GetPlayerSpecialAction(d) == SPECIAL_ACTION_USEJETPACK)
        {
            GetPlayerName(d, PlayerName, sizeof(PlayerName));
            format(string, sizeof(string), "-DHack- %s Foi Kickado Pelo Administrador DBot [Motivo: JetPack Hack]", PlayerName);
            SendClientMessageToAll(COLOR_LIGHTRED, string);
            Kick();
        }
        for(new a = 0; a < sizeof(Armashack); a ++)
        {
            if(GetPlayerWeapon(d) == Armashack[a]){
            GetPlayerName(d, PlayerName, sizeof(PlayerName));
            format(string, sizeof(string), "-DHack- %s Foi Kickado Pelo Administrador DBot [Motivo: Weapon Hack]", PlayerName);
            SendClientMessageToAll(COLOR_LIGHTRED, string);
            Kick();
            }
         }
d = players
a = armas.
vai kickar as armas? '-'
Reply


Messages In This Thread
[Ajuda] Estranho - by Don_Speed - 03.03.2012, 12:58
Re: [Ajuda] Estranho - by Chavez - 03.03.2012, 13:00
Re: [Ajuda] Estranho - by RebeloX - 03.03.2012, 13:02
Re: [Ajuda] Estranho - by humildadeforever - 03.03.2012, 13:05
Re: [Ajuda] Estranho - by Don_Speed - 03.03.2012, 13:07
Re: [Ajuda] Estranho - by RebeloX - 03.03.2012, 13:08
Re: [Ajuda] Estranho - by Don_Speed - 03.03.2012, 13:10
Re: [Ajuda] Estranho - by Chavez - 03.03.2012, 13:11
Re: [Ajuda] Estranho - by RebeloX - 03.03.2012, 13:16
Re: [Ajuda] Estranho - by humildadeforever - 03.03.2012, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)