Car into Interior
#1

How can i do it so if you drive a car into an Checkpoint it sends it to an interior?, Thanks.

-Mike.
Reply
#2

OnPlayerEnterCheckpoint - LinkVehicleToInterior

If you need help with a checkpoint system, search or look in some standard modes with checkpoints (like area51.pwn),
help about the function LinkVehicleToInterior, use wiki
Reply
#3

Thanks but i meant without defining the car it's self.

-Mike.
Reply
#4

not hard, here an example (with standard array names out of standard modes)

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    switch(gPlayerCheckpointStatus[playerid])
    {
        case THE_CHECKPOINT_YOU_WANTED:
        {
            SetPlayerInterior(playerid, 7);
            if(IsPlayerInAnyVehicle(playerid)) LinkVehicleToInterior(GetPlayerVehicleID(playerid), 7);
        }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)