[Pedido] Anti-Drive By
#3

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