[Pedido] Anti-Drive By
#4

Quote:
Originally Posted by CLANdok
Посмотреть сообщение
Como dito aqui: https://sampwiki.blast.hk/wiki/OnPlayerDeath_PT

Vocк pode usar INVALID_PLAYER_ID para verificar se o player foi morto por outro player ou nгo, agora a cadeia, vocк pode usar DOF2 ... Tem varios exemplos disto ai no fуrum mano, sу pesquisar !!
Obrigado .Vou Tentar

Quote:
Originally Posted by Boot
Посмотреть сообщение
Vocк estб pedindo um sistema de jail + sistema de controle de uso de comandos + sistema de salvamento em apenas um tуpico.

Vб devagar, existem outras alternativas que vocк pode utilizar. Veja:

Para matar o jogador que assassinou outro dentro de um veнculo utilizando uma arma:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID) 
    {
    if(IsPlayerInAnyVehicle(killerid)) return SetPlayerHealth(killerid, 0);
    }
    return 1;
}
Se quiser matar o jogador assassino, caso ele esteja como passageiro em um veнculo:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID) 
    {
    if(IsPlayerInAnyVehicle(killerid) && GetPlayerState(killerid) == 3) return SetPlayerHealth(killerid, 0);
    }
    return 1;
}
Se quiser matar o jogador assassino, caso ele esteja como motorista em um veнculo:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID) 
    {
    if(IsPlayerInAnyVehicle(killerid) && GetPlayerState(killerid) == 2) return SetPlayerHealth(killerid, 0);
    }
    return 1;
}
E para matar o jogador assassino, caso o motivo da morte seja por atropelamento:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID) 
    {
    if(reason == 49) return SetPlayerHealth(killerid, 0);
    }
    return 1;
}
Eu nгo to pedindo sistema de jail + sistema de controle de uso de comandos + sistema de salvamento em apenas um tуpico. eu estou querendo um Anti-Drive By que quando o palyer matar com o carro ele vai preso e na prisгo ele nгo consiga usar nenhum comando e se sair quando ele voltar continuar na prisгo
Reply


Messages In This Thread
Anti-Drive By - by Feio - 11.11.2014, 21:37
Re: Anti-Drive By - by CLANdok - 12.11.2014, 00:53
Re: Anti-Drive By - by Boot - 12.11.2014, 03:50
Re: Anti-Drive By - by Feio - 12.11.2014, 11:49
AW: Anti-Drive By - by s4kuL - 12.11.2014, 14:08
Re: AW: Anti-Drive By - by Feio - 27.11.2014, 22:11
Re: Anti-Drive By - by Pablo098 - 27.11.2014, 22:23
Re: Anti-Drive By - by Pablo098 - 27.11.2014, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)