Jumper movie teleportion
#1

Hey i wondring if it possible to make teleportion like when the car skipping the road to next point of it

How can i make it to samp with out to take the Location of the next teleport

Look at 1:38

https://www.youtube.com/watch?v=JMasdjup_JU

I want to do when he running and lock on some spot he will press some key and still run in to the spot

hope you understend
Reply
#2

That's very good idea. I might try to script something like that, can you wait till tomorrow?
Reply
#3

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
That's very good idea. I might try to script something like that, can you wait till tomorrow?
Cool sure
Reply
#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
#5

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
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
OOOO FUCKING OSM SHIT MAN !!@!@!!@## I DIDENT THING THET WORK YOU ARE OSM TNX !!!!! Only one more thing how can i make it to player to ? its not only moves forword its pass off the buildings and get inside in intriors!!@!@#!@
Reply
#6

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
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
This is freaking cool, I might edit this code for On-foot and use it, thanks!
Reply
#7

Quote:
Originally Posted by Onfroi
Посмотреть сообщение
This is freaking cool, I might edit this code for On-foot and use it, thanks!
When you do thet can you send me the script man?
Reply
#8

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SUBMISSION)
    {
            new Float:Speed[3],Float:Pos[4];
            GetPlayerVelocity(playerid,Speed[0],Speed[1],Speed[2]);
            GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
            GetPlayerFacingAngle(playerid,Pos[3]);
            SetPlayerPos(playerid,Pos[0]+(40*floatcos(90+Pos[3],degrees)),Pos[1]+(40*floatsin(90+Pos[3],degrees)),Pos[2]);
            SetPlayerFacingAngle(playerid,Pos[3]);
            SetPlayerVelocity(playerid,Speed[0],Speed[1],Speed[2]);
    }
    return 1;
}
The only problem with it is that you can go through objects.
Reply
#9

Quote:
Originally Posted by Onfroi
Посмотреть сообщение
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SUBMISSION)
    {
            new Float:Speed[3],Float:Pos[4];
            GetPlayerVelocity(playerid,Speed[0],Speed[1],Speed[2]);
            GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
            GetPlayerFacingAngle(playerid,Pos[3]);
            SetPlayerPos(playerid,Pos[0]+(40*floatcos(90+Pos[3],degrees)),Pos[1]+(40*floatsin(90+Pos[3],degrees)),Pos[2]);
            SetPlayerFacingAngle(playerid,Pos[3]);
            SetPlayerVelocity(playerid,Speed[0],Speed[1],Speed[2]);
    }
    return 1;
}
The only problem with it is that you can go through objects.
Itsnot working on foot! when he in the car he just fuck away from it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)