LinkVehicleToInterior ?!
#8

Untested.

Command: (I haven't tested this or the coordinates, I used the coordinates and interior that you provided)
pawn Код:
if(strcmp(cmdtext, "/derby", true) == 0)
    {
        new
            Float: tmp_A;

        GetPlayerFacingAngle(playerid, tmp_A);
        SetPVarInt(playerid, "d_Car", CreateVehicle(502, -1510.7020, 1014.6202, 1037.8568, tmp_A, -1, -1, -1));
        SetPlayerPos(playerid, -1510.7020,1014.6202,1037.8568);
        SetPlayerInterior(playerid, 15);
        LinkVehicleToInterior(GetPVarInt(playerid, "d_Car"), 15);
        PutPlayerInVehicle(playerid, GetPVarInt(playerid, "d_Car"), 0);
        return 1;
    }
Callback to return the player to their vehicle if/when they try to exit.
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid) {
    if(GetPVarInt(playerid, "d_Car") != 0) PutPlayerInVehicle(playerid, GetPVarInt(playerid, "d_Car"), 0);
    return 1;
}
Reply


Messages In This Thread
LinkVehicleToInterior ?! - by Yaszine - 19.12.2010, 12:33
Re: LinkVehicleToInterior ?! - by WillyP - 19.12.2010, 12:37
Re : LinkVehicleToInterior ?! - by Yaszine - 19.12.2010, 13:31
Re: LinkVehicleToInterior ?! - by WillyP - 19.12.2010, 14:22
Re : LinkVehicleToInterior ?! - by Yaszine - 19.12.2010, 14:42
Re: Re : LinkVehicleToInterior ?! - by WillyP - 19.12.2010, 14:46
Re: LinkVehicleToInterior ?! - by Rachael - 19.12.2010, 14:48
Re: LinkVehicleToInterior ?! - by __ - 19.12.2010, 14:57
Re : Re: LinkVehicleToInterior ?! - by Yaszine - 19.12.2010, 15:12
Re: Re : Re: LinkVehicleToInterior ?! - by __ - 19.12.2010, 15:16

Forum Jump:


Users browsing this thread: 3 Guest(s)