SA-MP Forums Archive
[Pedido] Anti car mass. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Anti car mass. (/showthread.php?tid=370209)



Anti car mass. - Ley - 19.08.2012

  • 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());
    }



Re: Anti car mass. - Psat - 19.08.2012

vei a imagem nao tah carregando faz reupload


Re: Anti car mass. - Kuddy - 19.08.2012

Tira o && oldstate != PLAYER_STATE_SPECTATING


Re: Anti car mass. - Ley - 19.08.2012

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