[ajuda] rбpidinho galera..
#9

Nгo testei mais tenta:

pawn Код:
new ecar[10];
pawn Код:
ecar[0] = AddStaticVehicle(411, -219.1043548584, 126.62648010254, 2.4757533073425, 256, 1, 1);
    ecar[1] = AddStaticVehicle(411, -217.46313476563, 132.11206054688, 2.745857000351, 255.99792480469, 1, 1);
    ecar[2] = AddStaticVehicle(451, -215.57794189453, 137.46343994141, 2.989901304245, 258, 2, 1);
    ecar[3] = AddStaticVehicle(451, -213.73973083496, 142.71771240234, 3.3443868160248, 257.99743652344, 2, 1);
    ecar[4] = AddStaticVehicle(541, -211.43984985352, 148.18342590332, 3.9538490772247, 254, 3, 1);
    ecar[5] = AddStaticVehicle(541, -209.61297607422, 152.59313964844, 4.5107417106628, 253.99841308594, 3, 1);
    ecar[6] = AddStaticVehicle(562, -207.91836547852, 157.18208312988, 5.132025718689, 258, 4, 1);
    ecar[7] = AddStaticVehicle(562, -206.39881896973, 161.09043884277, 5.6199159622192, 257.99743652344, 4, 1);
    ecar[8] = AddStaticVehicle(470, -204.26638793945, 165.56103515625, 6.620276927948, 254, 5, 1);
    ecar[9] = AddStaticVehicle(470, -202.21252441406, 169.87757873535, 7.5046730041504, 253.99841308594, 5, 1);
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if ((newkeys & (KEY_FIRE | KEY_SPRINT)) == (KEY_FIRE | KEY_SPRINT) && (oldkeys & (KEY_FIRE | KEY_SPRINT)) != (KEY_FIRE | KEY_SPRINT) || newkeys == KEY_FIRE || (newkeys & (KEY_FIRE | KEY_LOOK_BEHIND)) == (KEY_FIRE | KEY_LOOK_BEHIND) && (oldkeys & (KEY_FIRE | KEY_LOOK_BEHIND)) != (KEY_FIRE | KEY_LOOK_BEHIND))
    {
        new Veiculo = GetPlayerVehicleID(playerid);
        if(Veiculo == ecar[0] || Veiculo == ecar[1] || Veiculo == ecar[2] || Veiculo == ecar[3] || Veiculo == ecar[4] ||
        Veiculo == ecar[5] || Veiculo == ecar[6] || Veiculo == ecar[7] || Veiculo == ecar[8] || Veiculo == ecar[9])
        {
            if(!tiro[playerid])
            {
                new Float:explosion[3],Float:pos[2];
                GetVehiclePos(ecar, pos[0], pos[1], explosion[2]);
                GetXYInFrontOfVehicle(ecar, explosion[0], explosion[1],25.0);
                CreateExplosion(explosion[0], explosion[1], explosion[2], 3, 10.0);
                GetXYInFrontOfVehicle(ecar, explosion[0], explosion[1],30.0);
                CreateExplosion(explosion[0], explosion[1], explosion[2], 3, 10.0);
                GetXYInFrontOfVehicle(ecar, explosion[0], explosion[1],35.0);
                CreateExplosion(explosion[0], explosion[1], explosion[2], 3, 10.0);
                GetXYInFrontOfVehicle(ecar, explosion[0], explosion[1],40.0);
                CreateExplosion(explosion[0], explosion[1], explosion[2], 3, 10.0);
                GetXYInFrontOfVehicle(ecar, explosion[0], explosion[1],45.0);
                CreateExplosion(explosion[0], explosion[1], explosion[2], 3, 10.0);
                GetXYInFrontOfVehicle(ecar, explosion[0], explosion[1],50.0);
                CreateExplosion(explosion[0], explosion[1], explosion[2], 3, 10.0);
                tiro[playerid] = true;
                return 1;
            }
            else return SendClientMessage(playerid, -1, "Espere 2 segundos para sua arma recarregar!");
        }
    }
    return 1;
}
Reply


Messages In This Thread
[ajuda] rбpidinho galera.. - by Cristhian - 15.10.2011, 04:33
Re: [ajuda] rбpidinho galera.. - by Lуs - 15.10.2011, 04:58
Re: [ajuda] rбpidinho galera.. - by Cristhian - 15.10.2011, 05:02
Re: [ajuda] rбpidinho galera.. - by iansinho - 15.10.2011, 05:05
Re: [ajuda] rбpidinho galera.. - by Vai_Besta - 15.10.2011, 05:10
Re: [ajuda] rбpidinho galera.. - by iansinho - 15.10.2011, 05:13
Re: [ajuda] rбpidinho galera.. - by Cristhian - 15.10.2011, 05:14
Re: [ajuda] rбpidinho galera.. - by Cristhian - 15.10.2011, 05:32
Re: [ajuda] rбpidinho galera.. - by Lуs - 15.10.2011, 05:41
Re: [ajuda] rбpidinho galera.. - by Cristhian - 15.10.2011, 14:34

Forum Jump:


Users browsing this thread: 2 Guest(s)