06.12.2014, 13:46
Bueno, la cosa esque con el sistema de casa, hizeuno de garage, y bueno cuando lo compro y entro todo perfecto, pero cuando quiero entrar con auto, entro yel auto se queda fuera, lo puse de otra forma y cuando entro el usuario entra y el auto pero el user fuera del auto.
este es el codigo:
este es el codigo:
pawn Код:
for(new i = 0; i < sizeof(GarageInfo); i++){
if (IsPlayerInRangeOfPoint(playerid,9,GarageInfo[i][gExteriorX], GarageInfo[i][gExteriorY], GarageInfo[i][gExteriorZ])){
if(Info[playerid][pGaragekey] == i || Info[playerid][pGaragekey2] == i || GarageInfo[i][gLock] == 0){
new vehicleid = GetPlayerVehicleID(playerid);
Info[playerid][pVW] = i+6000;
SetPlayerVirtualWorld(playerid, i+6000);
SetVehicleVirtualWorld(vehicleid, i+6000);
SetVehiclePos(GetPlayerVehicleID(playerid), GarageInfo[i][gInteriorX],GarageInfo[i][gInteriorY],GarageInfo[i][gInteriorZ]);
SetPlayerPos(playerid,GarageInfo[i][gInteriorX],GarageInfo[i][gInteriorY],GarageInfo[i][gInteriorZ]);
SetPlayerFacingAngle(playerid, GarageInfo[i][gExteriorA]);
SetCameraBehindPlayer(playerid);
LoadObjects(playerid);
Streamer_UpdateEx(playerid, GarageInfo[i][gInteriorX],GarageInfo[i][gInteriorY],GarageInfo[i][gInteriorZ]);
}
else
{
GameTextForPlayer(playerid, "~r~Cerrado", 5000, 1);
}
return 1;
}
}