[FilterScript] Pilot Inject
#1

Esta aqui no tedio vendo "Estralas" shsuhsuhsu dai resolvi pesar um tempo no PAWN pensando no que fazer
dae me veio essa ideia apesar de simples ainda nao vi.

O que faz?

Caso o player seja da organizaзao Forзa Aeria e esteja em um veiculo o mesmo podera se ejetar do veiculo utilizando
a tecla CAPS LOCK ou H.

Codigo

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if ((newkeys==KEY_CROUCH)) // Key ( H / CAPSLOCK )
    {
        if(PlayerInfo[playerid][Org] == 5 && IsPlayerInAnyVehicle(playerid))
        {
            new Float:PP[3];
            GetPlayerPos(playerid, PP[0], PP[1], PP[2]);
            SetPlayerPos(playerid, PP[0]+15, PP[1]+15, PP[2]+15);
            GivePlayerWeapon(playerid, 46, 1);
            SendClientMessage(playerid,0x0000B9FF,"(INJECT)Voce foi injetado do veiculo.");
            return 1;
        }
    }
    return 1;
}
Imagem



Creditos: Eu
Reply


Messages In This Thread
Pilot Eject - by ungroup - 04.05.2013, 17:24
Re: Pilot Inject - by smiiir - 04.05.2013, 18:26
Re: Pilot Inject - by Don_Speed - 04.05.2013, 18:30
Re: Pilot Inject - by ungroup - 04.05.2013, 18:35
Re: Pilot Inject - by Schocc - 04.05.2013, 18:47
Re: Pilot Inject - by Falcon. - 04.05.2013, 18:51
Re: Pilot Inject - by ungroup - 04.05.2013, 18:56
Re: Pilot Inject - by Falcon. - 04.05.2013, 19:04
Re: Pilot Inject - by Kuddy - 04.05.2013, 19:42
Re: Pilot Inject - by zSuYaNw - 04.05.2013, 19:54

Forum Jump:


Users browsing this thread: 1 Guest(s)