Jumper movie teleportion -
LionCodeT4 - 27.04.2013
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
Re: Jumper movie teleportion -
[MG]Dimi - 27.04.2013
That's very good idea. I might try to script something like that, can you wait till tomorrow?
Re: Jumper movie teleportion -
LionCodeT4 - 27.04.2013
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
Re: Jumper movie teleportion -
[MG]Dimi - 27.04.2013
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
Re: Jumper movie teleportion -
LionCodeT4 - 27.04.2013
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!!@!@#!@
Re: Jumper movie teleportion -
Onfroi - 27.04.2013
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!
Re: Jumper movie teleportion -
LionCodeT4 - 27.04.2013
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?
Respuesta: Jumper movie teleportion -
Onfroi - 08.06.2013
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.
Re: Respuesta: Jumper movie teleportion -
LionCodeT4 - 08.06.2013
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