Dynamic Door help. Will REP++++
#2

pawn Код:
CMD:enter(playerid, params[])
{
    for(new idx=0; idx<MAX_DOORS; idx++)
    {
        if(!DoorInfo[idx][dType])
        {
            if(IsPlayerInRangeOfPoint(playerid, 5.0, DoorInfo[idx][dOX], DoorInfo[idx][dOY], DoorInfo[idx][dOZ]))
            {
                new vehicleid = GetPlayerVehicleID(playerid);
                SetVehiclePos(vehicleid, DoorInfo[idx][dIX], DoorInfo[idx][dIY], DoorInfo[idx][dIZ]);
                SetVehicleVW(vehicleid, DoorInfo[idx][dIVW]);
                LinkVehicleToInterior(vehicleid, DoorInfo[idx][dIINT]);
                return 1;
            }
        }
    }
    return 1;
}
thats a basic outline, im sure you can make it work from here, checking if the player is in the vehicle, if they are at the interior, and how to pass on foot
Reply


Messages In This Thread
Dynamic Door help. Will REP++++ - by Alex_T - 27.10.2013, 02:16
Re: Dynamic Door help. Will REP++++ - by Mattakil - 27.10.2013, 02:58
Re: Dynamic Door help. Will REP++++ - by Alex_T - 27.10.2013, 22:21
Re: Dynamic Door help. Will REP++++ - by bensmart469 - 27.10.2013, 23:28

Forum Jump:


Users browsing this thread: 1 Guest(s)