Checkpoints Please Help
#1

Hey guys… I know I should know this.. but I took a break from scripting and need to know how to do the following:

A player is going through this parkour… then he sees a checkpoint. (need to know how to create a checkpoint)

He enters the checkpoint… it takes his car, and gives him a bullet.


Thanks!
-Kevin
Reply
#2

SetPlayerCheckPoint
Reply
#3

Thanks, and how do i give the player the bullet and respawn the car he is in?
Reply
#4

You mean give him a bullet and save his car for later?
Reply
#5

cant really remember the codes but it goes like this i think
do a Removeplayerfromvehicle
then Createvehicle
then putplayerinvehicle
Reply
#6

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    new VID = GetPlayerVehicleID(playerid);
    DestroyVehicle(VID);
    new Float:Pos[4];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    GetPlayerFacingAngle(playerid, Pos[3]);
    new VID2 = CreateVehicle(/*Bullet car model ID*/, Pos[0], Pos[1], Pos[2],  Pos[3], -1, -1, 999999*999);
    PutPlayerInVehicle(playerid, VID2);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)