[Pedido] Anti car mass.
#1

  • Bom dia.
  • Estou a utilizar o "bprotecao" de ipsBruno, e uma outra para rodar junto, porйm nгo estб funcionando 100%. Sempre que logo no servidor ta cheio de carro prуximo ao palбcio central.
  • Vejam na print;

  • E o cуdigo utilizado estб assim;


pawn Код:
if((newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) && oldstate != PLAYER_STATE_SPECTATING) {
        if((gettime() - GetPVarInt(playerid, "EnterVehicle")) < 2) {

            // antes de banir. Cheque se o jogador nгo usou algo com PutPlayerInVehicle em seu servidor (tipo flood de /criarcarros).

            SendClientMessage(playerid, -1, "[Info] Banido por usar spawnerr mass");
            BanEx(playerid, "CLEO 4");
        }
        SetPVarInt(playerid, "registerOnState", 1);
        SetPVarInt(playerid, "EnterVehicle", gettime());
    }
Reply
#2

vei a imagem nao tah carregando faz reupload
Reply
#3

Tira o && oldstate != PLAYER_STATE_SPECTATING
Reply
#4

Quote:
Originally Posted by Kuddy
Посмотреть сообщение
Tira o && oldstate != PLAYER_STATE_SPECTATING
Obrigado, irei ver o resultado.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)