if(PRESSED(KEY_CTRL_BACK)){ for(new i; i < MAX_GARAZS; i ++) { if(IsPlayerInRangeOfPoint(playerid, 1.5, gInfo[beX], gInfo[beY], gInfo[beZ])) { if(gInfo[Zarva] == 0) { SetPlayerVirtualWorld(playerid, gInfo[VWorld]); SetPlayerInterior(playerid, gInfo[interior]); SetPlayerPos(playerid, gInfo[intiX], gInfo[intiY], gInfo[intiZ]); Garazsban[playerid] = i; cmd_me(playerid, \"bement egy Garazsba.\"); } else { GameTextForPlayer(playerid, \"~r~Zárva!\", 2500, 1); } }}if(Garazsban[playerid] != MAX_GARAZS + 1){ new i = Garazsban[playerid]; if(IsPlayerInRangeOfPoint(playerid, 1.5, gInfo[intiX], gInfo[intiY], gInfo[intiZ])) { if(gInfo[Zarva] == 0) { SetPlayerInterior(playerid, 0), SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, gInfo[beX], gInfo[beY], gInfo[beZ]); Garazsban[playerid] = MAX_GARAZS + 1; cmd_me(playerid, \"kijött egy Garazsból.\"); } else { GameTextForPlayer(playerid, \"~r~Garázs Csükot!\", 2500, 1); } }}}
new carid;carid = GetPlayerVehicleID(playerid)SetVehicleVirtualWorld(carid, 10);SetVehiclePos(carid, x,y,z);SetPlayerVirtualWorld(playerid, 10);SetPlayerPos(playerid, x, y, z);PutPlayerInVehicle(playerid, carid, 0);