#1

if i m in a checkpoint Car Get Jump


help me how use it
Reply
#2

help pleaz
Reply
#3

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

how to add checkpoint
Reply
#5

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

Calvinc can you give e code pleaz

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

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.
Reply
#8

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

Put the SetVehicleVelocity under OnPlayerEnterCheckpoint.
Reply
#10

ok think but i m using fuction

IsPlayerInRangeOfPoint
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)