SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (/showthread.php?tid=560845)



Help - Medscripter - 30.01.2015

if i m in a checkpoint Car Get Jump


help me how use it


Re: Help - Medscripter - 30.01.2015

help pleaz


Re: Help - CalvinC - 30.01.2015

Use OnPlayerEnterCheckpoint, and check if he is in a vehicle.
If so, SetVehicleVelocity.


Re: Help - Medscripter - 30.01.2015

how to add checkpoint


Re: Help - andrewgrob - 30.01.2015

Quote:
Originally Posted by Medscripter
Посмотреть сообщение
how to add checkpoint
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint


Re: Help - Medscripter - 31.01.2015

Calvinc can you give e code pleaz

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}
checkpoint place
Код:
-2026.2871,147.1436,28.8359



Re: Help - CalvinC - 31.01.2015

First, create the checkpoint with SetPlayerCheckPoint.
Then under OnPlayerEnterCheckpoint, use SetVehicleVelocity to boost the vehicle in a direction.
Etc. this will make it boost up in the air:
pawn Код:
SetVehicleVelocity(GetPlayerVehicleID(playerid), 0, 0, 2); // We set the velocity to 0 in x and y, but z (upwards / downwards) is set to 2, which will make it boost upwards.



Re: Help - Medscripter - 31.01.2015

i make that in
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}



Re: Help - CalvinC - 31.01.2015

Put the SetVehicleVelocity under OnPlayerEnterCheckpoint.


Re: Help - Medscripter - 31.01.2015

ok think but i m using fuction

IsPlayerInRangeOfPoint