Jumper movie teleportion
#4

pawn Код:
#include <a_samp>

public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
    if(newkeys & KEY_SUBMISSION)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new Float:Speed[3],Float:Pos[4],id;
            id = GetPlayerVehicleID(playerid);
            GetVehicleVelocity(id,Speed[0],Speed[1],Speed[2]);
            GetVehiclePos(id,Pos[0],Pos[1],Pos[2]);
            GetVehicleZAngle(id,Pos[3]);
            SetVehiclePos(id,Pos[0]+(40*floatcos(90+Pos[3],degrees)),Pos[1]+(40*floatsin(90+Pos[3],degrees)),Pos[2]);
            SetVehicleZAngle(id,Pos[3]);
            SetVehicleVelocity(id,Speed[0],Speed[1],Speed[2]);
        }
    }
    return 1;
}
Use it only while on flat, not while going uphill. I can improve it ofc if you want
Reply


Messages In This Thread
Jumper movie teleportion - by LionCodeT4 - 27.04.2013, 19:37
Re: Jumper movie teleportion - by [MG]Dimi - 27.04.2013, 20:44
Re: Jumper movie teleportion - by LionCodeT4 - 27.04.2013, 21:09
Re: Jumper movie teleportion - by [MG]Dimi - 27.04.2013, 21:16
Re: Jumper movie teleportion - by LionCodeT4 - 27.04.2013, 22:28
Re: Jumper movie teleportion - by Onfroi - 27.04.2013, 22:57
Re: Jumper movie teleportion - by LionCodeT4 - 27.04.2013, 23:50
Respuesta: Jumper movie teleportion - by Onfroi - 08.06.2013, 17:27
Re: Respuesta: Jumper movie teleportion - by LionCodeT4 - 08.06.2013, 21:24

Forum Jump:


Users browsing this thread: 2 Guest(s)