27.10.2013, 02:58
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;
}
