Jumper movie teleportion
#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


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)